From 136b2c5fdb51fa2ac62203995195831aa173c866 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Feb 2012 17:33:18 +0530 Subject: [PATCH] only move to position if there are annotations, fixes #379 --- source/Ox.UI/js/Video/Ox.VideoEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {