aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorpheiberg <peter@heiberg.se>2010-11-24 19:17:23 +0100
committerScott González <scott.gonzalez@gmail.com>2010-11-30 17:46:53 -0500
commit98f7e6a8d615772fbddbf185241d087a95e5e121 (patch)
tree0b8183b5d2363a43d4e15c9b9672f4a5037e57e0 /ui/jquery.ui.datepicker.js
parentd97add11b08227b3cbde76c2e93fe50c42a27123 (diff)
downloadjquery-ui-98f7e6a8d615772fbddbf185241d087a95e5e121.tar.gz
jquery-ui-98f7e6a8d615772fbddbf185241d087a95e5e121.zip
Datepicker: made it possible to select a date in the selected month using enter. Fixes #5527 - Datepicker: Problem selecting the date with keyboard shorcuts
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index ed2ab0600..519b8a913 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -500,8 +500,8 @@ $.extend(Datepicker.prototype, {
case 9: $.datepicker._hideDatepicker();
handled = false;
break; // hide on tab out
- case 13: var sel = $('td.' + $.datepicker._dayOverClass, inst.dpDiv).
- add($('td.' + $.datepicker._currentClass, inst.dpDiv));
+ case 13: var sel = $('td.' + $.datepicker._dayOverClass + ':not(.' +
+ $.datepicker._currentClass + ')', inst.dpDiv);
if (sel[0])
$.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
else