fix: call selectAll on 'cmd+a', set a TextSelection instead of AllSelection, fix #1908

This commit is contained in:
Philipp Kühn
2021-09-22 00:03:32 +02:00
parent 31b269dd5a
commit bad16d9f3a
2 changed files with 6 additions and 5 deletions

View File

@@ -29,8 +29,7 @@ export const Keymap = Extension.create({
'Mod-Backspace': () => handleBackspace(),
Delete: () => handleDelete(),
'Mod-Delete': () => handleDelete(),
// we dont need a custom `selectAll` for now
// 'Mod-a': () => this.editor.commands.selectAll(),
'Mod-a': () => this.editor.commands.selectAll(),
}
},
})