mirror of
https://github.com/heyman/heynote.git
synced 2025-06-27 21:12:00 +02:00
Make emacs mark mode commands return true to stop other key bindings from executing
This commit is contained in:
parent
7a2740ef19
commit
89f883e5e9
@ -26,6 +26,7 @@ export function emacsMoveCommand(defaultCmd, markModeCmd) {
|
||||
export function toggleEmacsMarkMode(editor) {
|
||||
return (view) => {
|
||||
editor.emacsMarkMode = !editor.emacsMarkMode
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,5 +34,6 @@ export function emacsCancel(editor) {
|
||||
return (view) => {
|
||||
simplifySelection(view)
|
||||
editor.emacsMarkMode = false
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user