mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
js: Only close a modal if an ESC press is not handled otherwise
This commit is contained in:
parent
59e6ec4035
commit
7790a72efa
@ -148,7 +148,7 @@
|
||||
Modal.prototype.onKeyDown = function(event) {
|
||||
var _this = event.data.self;
|
||||
|
||||
if (event.which === 27) {
|
||||
if (! event.isDefaultPrevented() && event.key === 'Escape') {
|
||||
_this.hide(_this.$layout.children('#modal'));
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user