|
|
|
@ -66,7 +66,8 @@ export function ModelMainMounted() { |
|
|
|
// 规格话 tip 描述,比如 ctrl变成^, shift变成⇧, space 变成 alt变成!, key-变成空格
|
|
|
|
|
|
|
|
// key- 可能是 key-r, key-s, 等要处理成 r, s
|
|
|
|
const keyWithoutKey = menu.tip.replace(/key-/, '') |
|
|
|
const keyWithoutKey = _.upperCase(menu.tip.replace(/key-/, '')) |
|
|
|
menu.tip = keyWithoutKey |
|
|
|
hotkeys(keyWithoutKey, (event) => { |
|
|
|
event.preventDefault() |
|
|
|
menu.click() |
|
|
|
|