1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-17 19:06:40 +02:00

Merge branch 'v4-dev' into v4-dev-docs-navs-js-tabpanel-fix

This commit is contained in:
Patrick H. Lauke
2017-04-09 22:05:10 +01:00
committed by GitHub

View File

@@ -289,6 +289,7 @@ const Modal = (($) => {
if (this._isShown && this._config.keyboard) {
$(this._element).on(Event.KEYDOWN_DISMISS, (event) => {
if (event.which === ESCAPE_KEYCODE) {
event.preventDefault()
this.hide()
}
})