only move to position if there are annotations, fixes #379
This commit is contained in:
parent
2be6052276
commit
136b2c5fdb
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ Ox.VideoEditor = function(options, self) {
|
||||||
selectAnnotation();
|
selectAnnotation();
|
||||||
},
|
},
|
||||||
key_closebracket: function() {
|
key_closebracket: function() {
|
||||||
movePositionTo('annotation', 1);
|
self.annotations.length && movePositionTo('annotation', 1);
|
||||||
},
|
},
|
||||||
key_comma: function() {
|
key_comma: function() {
|
||||||
movePositionTo('cut', -1);
|
movePositionTo('cut', -1);
|
||||||
|
@ -134,7 +134,7 @@ Ox.VideoEditor = function(options, self) {
|
||||||
setPoint('out', self.options.position);
|
setPoint('out', self.options.position);
|
||||||
},
|
},
|
||||||
key_openbracket: function() {
|
key_openbracket: function() {
|
||||||
movePositionTo('annotation', -1);
|
self.annotations.length && movePositionTo('annotation', -1);
|
||||||
},
|
},
|
||||||
key_p: playInToOut,
|
key_p: playInToOut,
|
||||||
key_right: function() {
|
key_right: function() {
|
||||||
|
|
Loading…
Reference in a new issue