Merge branch 'v4-dev' into dropdown-keyboard

This commit is contained in:
Pierre Vanduynslager 2017-04-09 18:16:37 -04:00 committed by GitHub
commit d3fbebefcd
31 changed files with 247 additions and 266 deletions

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