Merge branch 'v4-dev' into dropdown-keyboard
This commit is contained in:
commit
d3fbebefcd
31 changed files with 247 additions and 266 deletions
|
|
@ -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()
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue