From 4372676f1f403e9c0d335f44bb733c4800fe6501 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 17 Jan 2014 09:34:21 +0000 Subject: [PATCH] video annotation panel: submit on shift+enter if editor has focus --- source/Ox.UI/js/Video/VideoAnnotationPanel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/VideoAnnotationPanel.js b/source/Ox.UI/js/Video/VideoAnnotationPanel.js index 51026a9d..8daadabf 100644 --- a/source/Ox.UI/js/Video/VideoAnnotationPanel.js +++ b/source/Ox.UI/js/Video/VideoAnnotationPanel.js @@ -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(); },