Make emacs mark mode commands return true to stop other key bindings from executing

This commit is contained in:
Jonatan Heyman 2025-04-13 12:39:50 +02:00
parent 7a2740ef19
commit 89f883e5e9

View File

@ -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
}
}