mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix: client: menu: close: ESC
This commit is contained in:
parent
121b114e89
commit
b1e231a5bb
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue