mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix: client: menu: before show: unsetBind
This commit is contained in:
parent
899266a62a
commit
64e4aba414
1 changed files with 5 additions and 1 deletions
|
|
@ -202,6 +202,8 @@ function isPath(x, y) {
|
|||
}
|
||||
|
||||
function beforeShow(callback, params) {
|
||||
Key.unsetBind();
|
||||
|
||||
const {name} = params;
|
||||
const el = DOM.getCurrentByPosition({
|
||||
x: params.x,
|
||||
|
|
@ -327,8 +329,10 @@ function listener(event) {
|
|||
const key = event.keyCode;
|
||||
const isBind = Key.isBind();
|
||||
|
||||
if (key === ESC)
|
||||
if (key === ESC) {
|
||||
Key.setBind();
|
||||
return hide();
|
||||
}
|
||||
|
||||
if (isBind && key === F9) {
|
||||
const position = getCurrentPosition();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue