diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-08-24 19:13:16 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-08-24 19:13:16 +0000 |
commit | 49691da7ad6fd4d046b98279a0684434b0201cfd (patch) | |
tree | 3083ef1a70c880d4ccece0afd90aecef41da272a | |
parent | 54dc4e2cd48911d7f559bed77ab864300d444e97 (diff) | |
download | jquery-ui-49691da7ad6fd4d046b98279a0684434b0201cfd.tar.gz jquery-ui-49691da7ad6fd4d046b98279a0684434b0201cfd.zip |
Spinner: Fixed key code constants.
-rw-r--r-- | ui/ui.spinner.js | 4 |
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);
|