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:
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();
}
});