video annotation panel: submit on shift+enter if editor has focus
This commit is contained in:
parent
5119a15173
commit
4372676f1f
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue