mirror of
https://github.com/heyman/heynote.git
synced 2025-06-27 21:12:00 +02:00
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:
parent
89f883e5e9
commit
01aba1fb9f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user