dijit.form.HorizontalSlider._onKeyPress
dojo.require("dijit.form.Slider");
defined in dijit/form/Slider.js
Usage
function (e) (view source)
if(this.disabled || this.readOnly || e.altKey || e.ctrlKey){ return; } switch(e.keyCode){ case dojo.keys.HOME: this.setValue(this.minimum, true); break; case dojo.keys.END: this.setValue(this.maximum, true); break; // this._descending === false: if ascending vertical (min on top) // (this._descending || this.isLeftToRight()): if left-to-right horizontal or descending vertical case ((this._descending || this.isLeftToRight()) ? dojo.keys.RIGHT_ARROW : dojo.keys.LEFT_ARROW): case (this._descending === false ? dojo.keys.DOWN_ARROW : dojo.keys.UP_ARROW): case (this._descending === false ? dojo.keys.PAGE_DOWN : dojo.keys.PAGE_UP): this.increment(e); break; case ((this._descending || this.isLeftToRight()) ? dojo.keys.LEFT_ARROW : dojo.keys.RIGHT_ARROW): case (this._descending === false ? dojo.keys.UP_ARROW : dojo.keys.DOWN_ARROW): case (this._descending === false ? dojo.keys.PAGE_UP : dojo.keys.PAGE_DOWN): this.decrement(e); break; default: this.inherited(arguments); return; } dojo.stopEvent(e);
parameter | type | description |
---|---|---|
e |