feat: add selectTextblockStart and selectTextblockEnd commands

This commit is contained in:
Philipp Kühn
2022-01-25 10:35:39 +01:00
parent a20e887458
commit 0aa39f93cb
7 changed files with 64 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ export const Keymap = Extension.create({
Delete: handleDelete,
'Mod-Delete': handleDelete,
'Mod-a': () => this.editor.commands.selectAll(),
'Ctrl-a': () => this.editor.commands.selectTextblockStart(),
'Ctrl-e': () => this.editor.commands.selectTextblockEnd(),
Home: () => this.editor.commands.selectTextblockStart(),
End: () => this.editor.commands.selectTextblockStart(),
}
},