r3429 committed - spinner: shiftkey + home/end to highlight input rather than set to min...
Revision: 3429
Author: pazu2k@gmail.com
Date: Mon Nov 9 07:59:42 2009
Log: spinner: shiftkey + home/end to highlight input rather than set to
min/max value
http://code.google.com/p/jquery-ui/source/detail?r=3429
Modified:
/branches/labs/spinner/ui/ui.spinner.js
=======================================
--- /branches/labs/spinner/ui/ui.spinner.js Sun Sep 6 10:27:19 2009
+++ /branches/labs/spinner/ui/ui.spinner.js Mon Nov 9 07:59:42 2009
@@ -241,8 +241,8 @@
case KEYS.PAGE_UP: this._repeat(null, o.page, event); break;
case KEYS.PAGE_DOWN: this._repeat(null, -o.page, event); break;
- case KEYS.HOME: this._value(this._min()); break;
- case KEYS.END: this._value(this._max()); break;
+ case KEYS.HOME: !event.shiftKey ? this._value(this._min()) : false;
break;
+ case KEYS.END: !event.shiftKey ? this._value(this._max()) : false;
break;
case KEYS.TAB:
case KEYS.BACKSPACE: