mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 03:11:29 +08:00
Ignore empty key bindings (#3077)
This commit is contained in:
parent
637395a1f7
commit
220c6b9969
@ -38,6 +38,9 @@ class Keybindings {
|
||||
registerKeyHandlers (win, acceleratorMap) {
|
||||
for (const item of acceleratorMap) {
|
||||
let { accelerator } = item
|
||||
if (accelerator == null || accelerator === '') {
|
||||
continue
|
||||
}
|
||||
|
||||
// Regisiter shortcuts on the BrowserWindow instead of using Chromium's native menu.
|
||||
// This makes it possible to receive key down events before Chromium/Electron and we
|
||||
|
Loading…
Reference in New Issue
Block a user