mirror of
https://github.com/heyman/heynote.git
synced 2025-06-28 05:21:48 +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")
|
editor.openCreateBuffer("new")
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
const nothing = (view) => {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
const HEYNOTE_COMMANDS = {
|
const HEYNOTE_COMMANDS = {
|
||||||
//undo,
|
//undo,
|
||||||
@ -107,6 +110,7 @@ const NON_EDITOR_CONTEXT_COMMANDS = {
|
|||||||
selectPreviousParagraph, selectNextParagraph,
|
selectPreviousParagraph, selectNextParagraph,
|
||||||
selectPreviousBlock, selectNextBlock,
|
selectPreviousBlock, selectNextBlock,
|
||||||
paste: pasteCommand,
|
paste: pasteCommand,
|
||||||
|
nothing,
|
||||||
|
|
||||||
// directly from CodeMirror
|
// directly from CodeMirror
|
||||||
undo, redo,
|
undo, redo,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user