add missing keyboard shortcuts when timeline has focus in edits section

This commit is contained in:
rolux 2018-10-13 10:57:11 +02:00
parent 6eb3b0bb6f
commit 41020bb3e5

View file

@ -538,7 +538,7 @@ Ox.VideoEditPanel = function(options, self) {
// fixme: why not goToNextPosition()?
function getNextPosition(type, direction) {
// type can be 'chapter' or 'cut'
// type can be 'chapter' or 'cut'
var positions;
if (type == 'chapter') {
positions = self.chapters.map(function(chapter) {
@ -576,6 +576,13 @@ Ox.VideoEditPanel = function(options, self) {
})
.css({left: '4px', top: '4px'})
.bindEvent({
key_left: function() {
self.options.paused && movePositionBy(-1 / self.options.fps);
},
key_right: function() {
self.options.paused && movePositionBy(1 / self.options.fps);
},
key_space: togglePaused,
mousedown: that.gainFocus,
position: dragendTimeline,
positioning: dragTimeline,