mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
modal.js: Do not wobble if ESC has been handled otherwise
This commit is contained in:
parent
40114d90e4
commit
21ef5900ab
1 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@
|
|||
* @param event {KeyboardEvent} The `keydown` event triggered by pushing a key
|
||||
*/
|
||||
Modal.prototype.onEscapeKey = function(event) {
|
||||
if (event.key !== 'Escape') {
|
||||
if (event.isDefaultPrevented() || event.key !== 'Escape') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -220,7 +220,7 @@
|
|||
|
||||
if (_this.hasChanges) {
|
||||
_this.wobble($modal);
|
||||
} else if (! event.isDefaultPrevented()) {
|
||||
} else {
|
||||
_this.hide($modal);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue