only move to position if there are annotations, fixes #379

This commit is contained in:
j 2012-02-15 17:33:18 +05:30
parent 2be6052276
commit 136b2c5fdb

View file

@ -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() {