From b1e231a5bb5cc9974e9cb3340381a7cc4265387e Mon Sep 17 00:00:00 2001 From: coderiaser Date: Sat, 5 Jul 2025 20:32:21 +0300 Subject: [PATCH] fix: client: menu: close: ESC --- client/modules/menu.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/modules/menu.js b/client/modules/menu.js index 6ab88453..dda0dcf5 100644 --- a/client/modules/menu.js +++ b/client/modules/menu.js @@ -326,14 +326,11 @@ function listener(event) { const key = event.keyCode; const isBind = Key.isBind(); - - if (!isBind) - return; - + if (key === ESC) return hide(); - if (key === F9) { + if (isBind && key === F9) { const position = getCurrentPosition(); MenuContext.show(position.x, position.y);