add keyboard listeners

This commit is contained in:
rolux 2015-02-21 11:17:32 +00:00
parent 9343a25658
commit 29792f74aa

View file

@ -320,6 +320,13 @@ Ox.VideoPlayerPanel = 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