This commit is contained in:
Vanessa 2022-08-15 10:29:28 +08:00
parent e770211ed9
commit 0fa8f1da06

View file

@ -95,11 +95,13 @@ export const electronUndo = (event: KeyboardEvent) => {
if (matchHotKey(window.siyuan.config.keymap.editor.general.undo.custom, event)) {
getCurrentWindow().webContents.undo();
event.preventDefault();
event.stopPropagation();
return;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.redo.custom, event)) {
getCurrentWindow().webContents.redo();
event.preventDefault();
event.stopPropagation();
return;
}
/// #endif