1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 18:44:01 +02:00
This commit is contained in:
Mark Otto
2017-04-16 13:54:07 -07:00
parent 6d64afe508
commit bc0cf36dc8
28 changed files with 100 additions and 173 deletions

1
js/dist/modal.js vendored
View File

@@ -284,6 +284,7 @@ var Modal = function ($) {
if (this._isShown && this._config.keyboard) {
$(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
if (event.which === ESCAPE_KEYCODE) {
event.preventDefault();
_this5.hide();
}
});