0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 00:22:43 +00:00

Focus on editor after snippet

This commit is contained in:
Trevor Buckner
2022-10-18 13:52:22 -04:00
parent de86a77dfc
commit 3327712253

View File

@@ -235,6 +235,7 @@ const CodeEditor = createClass({
cm.setCursor(cm.getCursor('from')); cm.setCursor(cm.getCursor('from'));
} }
cm.replaceSelection(injectText, 'end'); cm.replaceSelection(injectText, 'end');
cm.focus();
}, },
makeUnderline : function() { makeUnderline : function() {