Make 1,2,3,... keyboard shortcuts work when annotations have focus (fixes #473)

This commit is contained in:
rlx 2012-02-15 22:41:49 +00:00
parent e819ff05df
commit 5b94a68f0f
3 changed files with 6 additions and 3 deletions

View file

@ -268,7 +268,8 @@ Ox.AnnotationFolder = function(options, self) {
); );
[ [
'0', 'b', 'backslash', 'closebracket', 'comma', 'dot', 'equal', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'b', 'backslash', 'closebracket', 'comma', 'dot', 'equal',
'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p',
'shift_0', 'shift_g', 'shift_i', 'shift_o', 'slash', 'space' 'shift_0', 'shift_g', 'shift_i', 'shift_o', 'slash', 'space'
].forEach(function(key) { ].forEach(function(key) {

View file

@ -222,7 +222,8 @@ Ox.AnnotationPanel = function(options, self) {
}) })
.appendTo(self.$folders); .appendTo(self.$folders);
[ [
'0', 'b', 'backslash', 'closebracket', 'comma', 'dot', 'equal', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'b', 'backslash', 'closebracket', 'comma', 'dot', 'equal',
'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p',
'shift_0', 'shift_g', 'shift_i', 'shift_o', 'slash', 'space' 'shift_0', 'shift_g', 'shift_i', 'shift_o', 'slash', 'space'
].forEach(function(key) { ].forEach(function(key) {

View file

@ -651,7 +651,8 @@ Ox.VideoEditor = function(options, self) {
}); });
[ [
'0', 'b', 'backslash', 'closebracket', 'comma', 'dot', 'equal', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'b', 'backslash', 'closebracket', 'comma', 'dot', 'equal',
'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p',
'shift_0', 'shift_g', 'shift_i', 'shift_o', 'slash', 'space' 'shift_0', 'shift_g', 'shift_i', 'shift_o', 'slash', 'space'
].forEach(function(key) { ].forEach(function(key) {