1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00
Binds up/down arrows for sliders
This commit is contained in:
jackunion 2014-07-13 20:46:20 +04:00
parent 3352346a74
commit bb93a18ca8

View File

@ -174,10 +174,10 @@ vjs.Slider.prototype.onFocus = function(){
};
vjs.Slider.prototype.onKeyPress = function(event){
if (event.which == 37) { // Left Arrow
if (event.which == 37 || event.which == 40) { // Left and Down Arrows
event.preventDefault();
this.stepBack();
} else if (event.which == 39) { // Right Arrow
} else if (event.which == 38 || event.which == 39) { // Up and Right Arrows
event.preventDefault();
this.stepForward();
}