public/javascripts/yui/slider/slider.js
function(e) {
        if (this.enableKeys) {
            var kc = Event.getCharCode(e);

            switch (kc) {
                case 0x25: // left
                case 0x26: // up
                case 0x27: // right
                case 0x28: // down
                case 0x24: // home
                case 0x23: // end
                    Event.preventDefault(e);
                    break;
                default:
            }
        }
    }
function(e) {
        if (this.enableKeys) {
            var kc = Event.getCharCode(e);

            switch (kc) {
                case 0x25: // left
                case 0x26: // up
                case 0x27: // right
                case 0x28: // down
                case 0x24: // home
                case 0x23: // end
                    Event.preventDefault(e);
                    break;
                default:
            }
        }
    }
function ( e ) { if ( this . enableKeys ) { var kc = Event . getCharCode ( e ) ; switch ( kc ) { case 0x25 : // left case 0x26 : // up case 0x27 : // right case 0x28 : // down case 0x24 : // home case 0x23 : // end Event . preventDefault ( e ) ; break ; default : } } }
Executed when a keypress event happens with the control focused.
Prevents the default behavior for navigation keys.  The actual
logic for moving the slider thumb in response to a key event
happens in handleKeyDown.
@param {Event} e the keypress event
Executed when a keypress event happens with the control focused . Prevents the default behavior for navigation keys . The actual logic for moving the slider thumb in response to a key event happens in handleKeyDown .