Skip to content

Commit b61905a

Browse files
author
Alexander Gitter
committed
Allow keyboard input of timezone specific characters if
showTimezone == true
1 parent 2be272b commit b61905a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ $.datepicker._doKeyPress = function(event) {
831831
" " +
832832
tp_inst._defaults.separator +
833833
tp_inst._defaults.timeSuffix +
834+
(tp_inst._defaults.showTimezone ? tp_inst._defaults.timezoneList.join('') : '') +
834835
dateChars,
835836
chr = String.fromCharCode(event.charCode === undefined ? event.keyCode : event.charCode);
836837
return event.ctrlKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);

0 commit comments

Comments
 (0)