From 49691da7ad6fd4d046b98279a0684434b0201cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 24 Aug 2008 19:13:16 +0000 Subject: [PATCH] Spinner: Fixed key code constants. --- ui/ui.spinner.js | 4 ++-- 1 file 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);