diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index a071354c..e27281ee 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -80,7 +80,7 @@ Ox.VideoEditor = function(options, self) { selectAnnotation(); }, key_closebracket: function() { - movePositionTo('annotation', 1); + self.annotations.length && movePositionTo('annotation', 1); }, key_comma: function() { movePositionTo('cut', -1); @@ -134,7 +134,7 @@ Ox.VideoEditor = function(options, self) { setPoint('out', self.options.position); }, key_openbracket: function() { - movePositionTo('annotation', -1); + self.annotations.length && movePositionTo('annotation', -1); }, key_p: playInToOut, key_right: function() {