mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
makes dialog's esc handler handle esc only
This commit is contained in:
parent
4f2112523c
commit
04ec579d30
@ -133,9 +133,9 @@ define(function(require, module, exports) {
|
||||
emit("resize");
|
||||
});
|
||||
var escHandler = function(e) {
|
||||
if (dialog.visible) {
|
||||
if (dialog.visible && e.keyCode == 27) {
|
||||
dialog.dispatchEvent("keydown", e);
|
||||
if (e.keyCode == 27) e.stopPropagation();
|
||||
e.stopPropagation();
|
||||
}
|
||||
};
|
||||
var addEscHandler = function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user