1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 18:40:03 +00: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
commit 41abd1c7a5

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