Skip to content
Permalink
Browse files

fix for arrow key operation (refs #3801)

  • Loading branch information
dbolter committed Jul 10, 2008
1 parent 12cdae0 commit 0a12681f3089ca564832ac33c3caf928841bae73
Showing with 3 additions and 2 deletions.
  1. +3 −2 ui/ui.slider.js
@@ -158,9 +158,10 @@ $.widget("ui.slider", {

keydown: function(keyCode, handle) {
if(/(37|38|39|40)/.test(keyCode)) {
var oper = /(37|40)/.test(keyCode) ? "-=" : "+=";
this.moveTo({
x: /(37|39)/.test(keyCode) ? (keyCode == 37 ? '-' : '+') + '=' + this.oneStep("x") : 0,
y: /(38|40)/.test(keyCode) ? (keyCode == 38 ? '-' : '+') + '=' + this.oneStep("y") : 0
x: oper + this.oneStep("x"),
y: oper + this.oneStep("y")
}, handle);
}
},

0 comments on commit 0a12681

Please sign in to comment.
You can’t perform that action at this time.