mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +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) {
|
Modal.prototype.onKeyDown = function(event) {
|
||||||
var _this = event.data.self;
|
var _this = event.data.self;
|
||||||
|
|
||||||
if (event.which === 27) {
|
if (! event.isDefaultPrevented() && event.key === 'Escape') {
|
||||||
_this.hide(_this.$layout.children('#modal'));
|
_this.hide(_this.$layout.children('#modal'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user