add keyboard listeners
This commit is contained in:
parent
9343a25658
commit
29792f74aa
1 changed files with 7 additions and 0 deletions
|
@ -320,6 +320,13 @@ Ox.VideoPlayerPanel = function(options, self) {
|
||||||
})
|
})
|
||||||
.css({left: '4px', top: '4px'})
|
.css({left: '4px', top: '4px'})
|
||||||
.bindEvent({
|
.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,
|
mousedown: that.gainFocus,
|
||||||
position: dragendTimeline,
|
position: dragendTimeline,
|
||||||
positioning: dragTimeline
|
positioning: dragTimeline
|
||||||
|
|
Loading…
Reference in a new issue