forked from 0x2620/oxjs
bind e to show entity info
This commit is contained in:
parent
4f7b9846d8
commit
160c38c361
2 changed files with 6 additions and 2 deletions
|
|
@ -268,7 +268,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
{id: 'annotation', title: annotationTitle, disabled: true}
|
||||
].concat(
|
||||
isEntity ? [
|
||||
{id: 'showentityinfo', title: Ox._('Show Entity Info')}
|
||||
{id: 'showentityinfo', title: Ox._('Show Entity Info'), keyboard: 'e'}
|
||||
] : [],
|
||||
[
|
||||
{id: 'findannotations', title: Ox._('Find in All {0}', [Ox.toTitleCase(self.options.itemName.plural)])},
|
||||
|
|
@ -385,6 +385,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
that.triggerEvent('info', {layer: layer.id});
|
||||
},
|
||||
insert: insert,
|
||||
key_e: function(data) {
|
||||
var entity = getAnnotation(self.options.selected).entity;
|
||||
entity && that.triggerEvent('showentityinfo', entity);
|
||||
},
|
||||
open: function() {
|
||||
that.triggerEvent('open');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue