From 29792f74aae558150f7b8058afd1c666ed6f22d0 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 21 Feb 2015 11:17:32 +0000 Subject: [PATCH] add keyboard listeners --- source/UI/js/Video/VideoPlayerPanel.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/UI/js/Video/VideoPlayerPanel.js b/source/UI/js/Video/VideoPlayerPanel.js index 85823b52..3e4bd1bd 100644 --- a/source/UI/js/Video/VideoPlayerPanel.js +++ b/source/UI/js/Video/VideoPlayerPanel.js @@ -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