Skip to content

Commit

Permalink
fix(history): use correct shortcuts for undo/redo
Browse files Browse the repository at this point in the history
  • Loading branch information
webkadiz committed Sep 10, 2023
1 parent 7832b96 commit 77b066d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/extension-history/src/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ export const History = Extension.create<HistoryOptions>({
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.undo(),
'Shift-Mod-y': () => this.editor.commands.redo(),

// Russian keyboard layouts
'Mod-я': () => this.editor.commands.undo(),
Expand Down

0 comments on commit 77b066d

Please sign in to comment.