mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
a3877f96d2
commit
9a1f0de288
2 changed files with 5 additions and 2 deletions
|
|
@ -342,6 +342,8 @@ export const keymap = {
|
|||
} else {
|
||||
keymapStr += Constants.KEYCODE[event.keyCode][0];
|
||||
}
|
||||
} else if (["/", ".", "+", "-", "*"].includes(event.key)) {
|
||||
keymapStr += event.key;
|
||||
} else if (event.code.startsWith("Digit") || event.code.startsWith("Key") || event.code.startsWith("Numpad")) {
|
||||
// 新版 Electron 可以支持 Alt["I", "E", "N", "U"],故移除原有判断
|
||||
keymapStr += event.code.substring(event.code.length - 1).toUpperCase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue