refactoring

This commit is contained in:
Philipp Kühn
2021-09-27 23:03:23 +02:00
parent 6a4bd8c3b5
commit aa25d362f9

View File

@@ -25,10 +25,10 @@ export const Keymap = Extension.create({
() => commands.splitBlock(), () => commands.splitBlock(),
]), ]),
'Mod-Enter': () => this.editor.commands.exitCode(), 'Mod-Enter': () => this.editor.commands.exitCode(),
Backspace: () => handleBackspace(), Backspace: handleBackspace,
'Mod-Backspace': () => handleBackspace(), 'Mod-Backspace': handleBackspace,
Delete: () => handleDelete(), Delete: handleDelete,
'Mod-Delete': () => handleDelete(), 'Mod-Delete': handleDelete,
'Mod-a': () => this.editor.commands.selectAll(), 'Mod-a': () => this.editor.commands.selectAll(),
} }
}, },