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 22, 2023
1 parent 7832b96 commit 520ce79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/extension-history/src/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ 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.redo(),

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

0 comments on commit 520ce79

Please sign in to comment.