1
0
Fork 0
forked from 0x2620/oxjs

bind e to show entity info

This commit is contained in:
j 2015-04-17 13:06:35 +05:30
commit 160c38c361
2 changed files with 6 additions and 2 deletions

View file

@ -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');
},