Is there a way to change the keyboard shortcuts of the jquery datepicker?
-
18-06-2021 - |
Вопрос
I would like to change the default ctrl+home to reopen the datepicker to the enter key. I have my datepicker tied to an input and it currently does not change focus after the date has been selected.
Решение
You could just bind the key event separately rather than trying to change the shortcut key.
$("#datepicker").keydown(function(e){
if(e.which == 13 && !$(this).datepicker("widget").is(":visible")) {
$(this).datepicker("show");
}
});
Не связан с StackOverflow