video player: add go to poster frame keyboard shortcut

This commit is contained in:
rlx 2013-08-01 13:11:00 +00:00
parent 20ac4c7ff4
commit 074ee0410e

View file

@ -254,7 +254,7 @@ Ox.VideoEditor = function(options, self) {
goToPoint('out'); goToPoint('out');
}, },
key_shift_p: function() { key_shift_p: function() {
// go to poster frame setPosition(self.options.posterFrame);
}, },
key_shift_right: function() { key_shift_right: function() {
movePositionBy(1); movePositionBy(1);
@ -565,7 +565,7 @@ Ox.VideoEditor = function(options, self) {
] : [], ] : [],
[ [
{}, {},
{id: 'gotoPosterFrame', title: Ox._('Go to Poster Frame')}, {id: 'gotoPosterFrame', title: Ox._('Go to Poster Frame'), keyboard: 'shift p'},
{id: 'setPosterFrame', title: Ox._('Set Poster Frame'), disabled: !self.options.enableSetPosterFrame}, {id: 'setPosterFrame', title: Ox._('Set Poster Frame'), disabled: !self.options.enableSetPosterFrame},
{}, {},
{id: 'keyboard', title: Ox._('Keyboard Shortcuts...'), keyboard: 'h'} {id: 'keyboard', title: Ox._('Keyboard Shortcuts...'), keyboard: 'h'}