Add command that does nothing except preventing further commands to execute for a specific keybinding (can be used to remove a default key binding)

This commit is contained in:
Jonatan Heyman 2025-04-13 12:40:31 +02:00
parent 89f883e5e9
commit 01aba1fb9f

View File

@ -58,6 +58,9 @@ const openCreateNewBuffer = (editor) => () => {
editor.openCreateBuffer("new")
return true
}
const nothing = (view) => {
return true
}
const HEYNOTE_COMMANDS = {
//undo,
@ -107,6 +110,7 @@ const NON_EDITOR_CONTEXT_COMMANDS = {
selectPreviousParagraph, selectNextParagraph,
selectPreviousBlock, selectNextBlock,
paste: pasteCommand,
nothing,
// directly from CodeMirror
undo, redo,