mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: Fixed key code constants.
This commit is contained in:
parent
54dc4e2cd4
commit
49691da7ad
@ -57,7 +57,7 @@ $.widget('ui.spinner', {
|
||||
})
|
||||
.bind('keydown.spinner', function(e) {
|
||||
var KEYS = $.keyCode;
|
||||
if (e.keyCode == KEYS.SPACE || e.keyCode == KEYS.RETURN) {
|
||||
if (e.keyCode == KEYS.SPACE || e.keyCode == KEYS.ENTER) {
|
||||
$(this).addClass('ui-spinner-pressed');
|
||||
if(!self.counter) self.counter = 1;
|
||||
self._up.call(self, e);
|
||||
@ -96,7 +96,7 @@ $.widget('ui.spinner', {
|
||||
})
|
||||
.bind('keydown.spinner', function(e) {
|
||||
var KEYS = $.keyCode;
|
||||
if (e.keyCode == KEYS.SPACE || e.keyCode == KEYS.RETURN) {
|
||||
if (e.keyCode == KEYS.SPACE || e.keyCode == KEYS.ENTER) {
|
||||
$(this).addClass('ui-spinner-pressed');
|
||||
if(!self.counter) self.counter = 1;
|
||||
self._down.call(self, e);
|
||||
|
Loading…
Reference in New Issue
Block a user