From 41020bb3e5713e86b7bcba2778e16a8b2f9e11e4 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 13 Oct 2018 10:57:11 +0200 Subject: [PATCH] add missing keyboard shortcuts when timeline has focus in edits section --- source/UI/js/Video/VideoEditPanel.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoEditPanel.js b/source/UI/js/Video/VideoEditPanel.js index 66a345d5..0a4f8627 100644 --- a/source/UI/js/Video/VideoEditPanel.js +++ b/source/UI/js/Video/VideoEditPanel.js @@ -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,