From 507370024115f41b89cb3c7f79b1dc397ba53d65 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 29 Mar 2016 14:57:42 +0200 Subject: [PATCH] add keyboard shortcut to toggle playback rate between 1 and 2 --- source/UI/js/Video/VideoAnnotationPanel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/UI/js/Video/VideoAnnotationPanel.js b/source/UI/js/Video/VideoAnnotationPanel.js index 1f317fa0..447e971a 100644 --- a/source/UI/js/Video/VideoAnnotationPanel.js +++ b/source/UI/js/Video/VideoAnnotationPanel.js @@ -227,6 +227,9 @@ Ox.VideoAnnotationPanel = function(options, self) { key_i: function() { setPoint('in', self.options.position); }, + key_k: function togglePlaybackRate() { + that.options({playbackRate: self.options.playbackRate == 1 ? 2 : 1}); + }, key_l: toggleLoop, key_left: function() { movePositionBy(-1 / self.options.fps); @@ -558,6 +561,7 @@ Ox.VideoAnnotationPanel = function(options, self) { [ {key: Ox.SYMBOLS.space, action: Ox._('Play/Pause')}, {key: 'P', action: Ox._('Play In to Out')}, + {key: 'K', action: Ox._('Toggle Playback Speed')}, {key: 'L', action: Ox._('Loop')}, {key: '0', action: Ox._('Mute/Unmute')}, {key: '-', action: Ox._('Turn Volume Down')},