From 520ce790c3dff2d0774211fe30fdce1905655b09 Mon Sep 17 00:00:00 2001 From: Vladislav Tkachenko Date: Sun, 10 Sep 2023 11:02:38 +0300 Subject: [PATCH] fix(history): use correct shortcuts for undo/redo --- packages/extension-history/src/history.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/extension-history/src/history.ts b/packages/extension-history/src/history.ts index 41ca6a7a4..b43cc75e5 100644 --- a/packages/extension-history/src/history.ts +++ b/packages/extension-history/src/history.ts @@ -51,11 +51,8 @@ export const History = Extension.create({ addKeyboardShortcuts() { return { 'Mod-z': () => this.editor.commands.undo(), - 'Mod-Z': () => this.editor.commands.undo(), - 'Mod-y': () => this.editor.commands.redo(), - 'Mod-Y': () => this.editor.commands.redo(), 'Shift-Mod-z': () => this.editor.commands.redo(), - 'Shift-Mod-Z': () => this.editor.commands.redo(), + 'Mod-y': () => this.editor.commands.redo(), // Russian keyboard layouts 'Mod-я': () => this.editor.commands.undo(),