Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2017-04-16 23:54:07 +0300
committerMark Otto <markdotto@gmail.com>2017-04-16 23:54:07 +0300
commitbc0cf36dc85cc974d92d3a7c64987aa6bc37ea25 (patch)
treed188fe5f7806b9f51678de2c2968ada349ab729e /js/dist/modal.js
parent6d64afe508bfd0bcfb5831a9a4708cef4ad88334 (diff)
grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index 9c661e7e2c..c083d1d8bc 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -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();
}
});