Fix mod+z/mod+y failed with capslock (#4132)

This commit is contained in:
Slapbox 2023-07-07 09:09:24 -04:00 committed by GitHub
parent d710846ecb
commit babf84b3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,11 @@ 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(),
// Russian keyboard layouts
'Mod-я': () => this.editor.commands.undo(),