Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Datepicker: made it possible to select a date in the selected month u…

…sing enter. Fixes #5527 - Datepicker: Problem selecting the date with keyboard shorcuts
  • Loading branch information...
commit 98f7e6a8d615772fbddbf185241d087a95e5e121 1 parent d97add1
@pheiberg pheiberg authored scottgonzalez committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.datepicker.js
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.