Skip to content

Commit 64e4aba

Browse files
committed
fix: client: menu: before show: unsetBind
1 parent 899266a commit 64e4aba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/modules/menu.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ function isPath(x, y) {
202202
}
203203

204204
function beforeShow(callback, params) {
205+
Key.unsetBind();
206+
205207
const {name} = params;
206208
const el = DOM.getCurrentByPosition({
207209
x: params.x,
@@ -327,8 +329,10 @@ function listener(event) {
327329
const key = event.keyCode;
328330
const isBind = Key.isBind();
329331

330-
if (key === ESC)
332+
if (key === ESC) {
333+
Key.setBind();
331334
return hide();
335+
}
332336

333337
if (isBind && key === F9) {
334338
const position = getCurrentPosition();

0 commit comments

Comments
 (0)