From b5ba23130b650d46ad9b464db76268d402f08d4a Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 30 Jul 2022 12:57:52 +0200 Subject: [PATCH] Esnure editor focus after invoking a command via a keyboard shortcut --- packages/web/editor.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index 4c43510..f931d20 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -360,6 +360,10 @@ export class Editor { `Error running command: ${e.message}`, "error" ); + }) + .then(() => { + // Always be focusing the editor after running a command + editor.focus(); }); return true; },