aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-08-24 19:13:16 +0000
committerScott González <scott.gonzalez@gmail.com>2008-08-24 19:13:16 +0000
commit49691da7ad6fd4d046b98279a0684434b0201cfd (patch)
tree3083ef1a70c880d4ccece0afd90aecef41da272a
parent54dc4e2cd48911d7f559bed77ab864300d444e97 (diff)
downloadjquery-ui-49691da7ad6fd4d046b98279a0684434b0201cfd.tar.gz
jquery-ui-49691da7ad6fd4d046b98279a0684434b0201cfd.zip
Spinner: Fixed key code constants.
-rw-r--r--ui/ui.spinner.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.spinner.js b/ui/ui.spinner.js
index 7aba08a89..743a4f9e7 100644
--- a/ui/ui.spinner.js
+++ b/ui/ui.spinner.js
@@ -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);