add keyboard shortcut to toggle playback rate between 1 and 2

This commit is contained in:
j 2016-03-29 14:57:42 +02:00
parent f2e7c75d2c
commit 5073700241

View file

@ -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')},