Skip to content

Commit b1e231a

Browse files
committed
fix: client: menu: close: ESC
1 parent 121b114 commit b1e231a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

client/modules/menu.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,11 @@ function listener(event) {
326326

327327
const key = event.keyCode;
328328
const isBind = Key.isBind();
329-
330-
if (!isBind)
331-
return;
332-
329+
333330
if (key === ESC)
334331
return hide();
335332

336-
if (key === F9) {
333+
if (isBind && key === F9) {
337334
const position = getCurrentPosition();
338335
MenuContext.show(position.x, position.y);
339336

0 commit comments

Comments
 (0)