video annotation panel: submit on shift+enter if editor has focus

This commit is contained in:
rolux 2014-01-17 09:34:21 +00:00
parent 5119a15173
commit 4372676f1f

View file

@ -180,7 +180,6 @@ Ox.VideoAnnotationPanel = function(options, self) {
},
key_enter: function() {
if (self.editing) {
// submitAnnotation();
blurAnnotation();
} else if (isEditable()) {
editAnnotation();
@ -238,6 +237,13 @@ Ox.VideoAnnotationPanel = function(options, self) {
key_shift_down: function() {
movePositionBy(self.options.duration);
},
key_shift_enter: function() {
if (self.editing) {
blurAnnotation();
} else if (isEditable()) {
editAnnotation();
}
},
key_shift_equal: function() {
self.options.videoSize == 'small' && toggleSize();
},