editor view: fix invalid entity inputs; fix keyboard focus

This commit is contained in:
rolux 2015-02-06 10:16:13 +00:00
commit 4134badf9d
4 changed files with 27 additions and 16 deletions

View file

@ -406,7 +406,8 @@ Ox.AnnotationPanel = function(options, self) {
layer.type == 'event' ? 'calendar' : 'map'
), data);
}
});
})
.appendTo(self.$folders);
[
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'b', 'backslash', 'closebracket', 'comma', 'dot',
@ -415,12 +416,11 @@ Ox.AnnotationPanel = function(options, self) {
'shift_g', 'shift_i', 'shift_minus', 'shift_o',
'slash', 'space'
].forEach(function(key) {
key = 'key_' + key;
key = 'key.' + key;
self.$folder[index].bindEvent(key, function() {
that.triggerEvent(key);
});
});
self.$folder[index].appendTo(self.$folders);
}
function renderFolders() {