문제

Why does Jquery UI dialog called every time on escape key press? how to stop triggering open dialog on clicking escape?

$(document).keyup(function (e) {
    // esc
    if (e.keyCode == 27) {
          e.stopPropagation();
    }   
});
도움이 되었습니까?

해결책

This might be what you're looking for. Pass this as an option when you make your dialog

'$("#blah").dialog({closeOnEscape: false});'

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top