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() {
|
key_enter: function() {
|
||||||
if (self.editing) {
|
if (self.editing) {
|
||||||
// submitAnnotation();
|
|
||||||
blurAnnotation();
|
blurAnnotation();
|
||||||
} else if (isEditable()) {
|
} else if (isEditable()) {
|
||||||
editAnnotation();
|
editAnnotation();
|
||||||
|
@ -238,6 +237,13 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
||||||
key_shift_down: function() {
|
key_shift_down: function() {
|
||||||
movePositionBy(self.options.duration);
|
movePositionBy(self.options.duration);
|
||||||
},
|
},
|
||||||
|
key_shift_enter: function() {
|
||||||
|
if (self.editing) {
|
||||||
|
blurAnnotation();
|
||||||
|
} else if (isEditable()) {
|
||||||
|
editAnnotation();
|
||||||
|
}
|
||||||
|
},
|
||||||
key_shift_equal: function() {
|
key_shift_equal: function() {
|
||||||
self.options.videoSize == 'small' && toggleSize();
|
self.options.videoSize == 'small' && toggleSize();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue