executeObsidianCommand: editor grabs focus

This commit is contained in:
seth 2026-03-18 17:17:35 -05:00
parent 774de34205
commit fadd5eb65d

View file

@ -444,6 +444,7 @@ export default class VimrcPlugin extends Plugin {
const editor = view.editor;
const command = availableCommands[commandName];
const {callback, checkCallback, editorCallback, editorCheckCallback} = command;
editor.focus(); // editor callbacks expect focus
if (editorCheckCallback)
editorCheckCallback(false, editor, view);
else if (editorCallback)