We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40114d9 commit 21ef590Copy full SHA for 21ef590
1 file changed
public/js/icinga/behavior/modal.js
@@ -208,7 +208,7 @@
208
* @param event {KeyboardEvent} The `keydown` event triggered by pushing a key
209
*/
210
Modal.prototype.onEscapeKey = function(event) {
211
- if (event.key !== 'Escape') {
+ if (event.isDefaultPrevented() || event.key !== 'Escape') {
212
return;
213
}
214
@@ -220,7 +220,7 @@
220
221
if (_this.hasChanges) {
222
_this.wobble($modal);
223
- } else if (! event.isDefaultPrevented()) {
+ } else {
224
_this.hide($modal);
225
226
};
0 commit comments