Skip to content

Commit

Permalink
fixes #492
Browse files Browse the repository at this point in the history
Binds up/down arrows for sliders
  • Loading branch information
jackunion committed Jul 13, 2014
1 parent 3352346 commit bb93a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit bb93a18

Please sign in to comment.