Modal.js: Prevent unnecessarily onKeyDown call

This commit is contained in:
Sukhwinder Dhillon 2025-01-30 16:01:36 +01:00
parent 79971cb1a6
commit 74369b7bf4

@ -24,7 +24,7 @@
this.on('click', '[data-icinga-modal]', this.onModalToggleClick, this);
this.on('mousedown', '#layout > #modal', this.onModalLeave, this);
this.on('click', '.modal-header > button', this.onModalClose, this);
this.on('keydown', this.onKeyDown, this);
this.on('keydown', '#layout > #modal.active', this.onKeyDown, this);
};
Modal.prototype = new Icinga.EventListener();