문제

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");
    }
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top