|
|
@ -49,7 +49,7 @@ export function ModelMainMounted() { |
|
|
menu.tip = shortKey |
|
|
menu.tip = shortKey |
|
|
hotkeys(shortKey, (event) => { |
|
|
hotkeys(shortKey, (event) => { |
|
|
event.preventDefault() |
|
|
event.preventDefault() |
|
|
menu.click() |
|
|
menu.click(event, shortKey) |
|
|
}) |
|
|
}) |
|
|
// console.log('hotkeys', menu.tip, menu.click)
|
|
|
// console.log('hotkeys', menu.tip, menu.click)
|
|
|
} |
|
|
} |
|
|
@ -62,4 +62,4 @@ export function ModelMainMounted() { |
|
|
export function ModelMainUnmounted() { |
|
|
export function ModelMainUnmounted() { |
|
|
// 移除所有的热键绑定 unbind all
|
|
|
// 移除所有的热键绑定 unbind all
|
|
|
hotkeys.unbind() |
|
|
hotkeys.unbind() |
|
|
} |
|
|
} |
|
|
|