From 3327712253d65529d7cddf46a89a9a5904bb430d Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 18 Oct 2022 13:52:22 -0400 Subject: [PATCH] Focus on editor after snippet --- shared/naturalcrit/codeEditor/codeEditor.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index 3ca0e61e4..245317910 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -235,6 +235,7 @@ const CodeEditor = createClass({ cm.setCursor(cm.getCursor('from')); } cm.replaceSelection(injectText, 'end'); + cm.focus(); }, makeUnderline : function() {