change keyboard shortcut for code blocks, should fix tests

This commit is contained in:
Hans Pagel
2020-10-12 20:28:04 +02:00
parent a237db377b
commit 3e3f4444e4
3 changed files with 6 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ export default new Node<CodeBlockOptions>()
},
}))
.keys(({ editor }) => ({
'Shift-Control-\\': () => editor.codeBlock(),
'Mod-Shift-c': () => editor.codeBlock(),
}))
.inputRules(({ type }) => [
textblockTypeInputRule(backtickInputRegex, type, ({ groups }: any) => groups),