In a shown modal there is a form. If I focus on an input field (any field for that matter) and press ESC key, that modal is hidden. However, if I don\'t focus on a form fiel
> keyboard: true Closes the modal when escape key is pressed. > keyboard: false Prevent closing the modal when escape key is pressed
Demo JQuery Code
$('#myModal').modal({show: true, keyboard: false});