diff --git a/packages/monaco/src/browser/monaco-command-registry.ts b/packages/monaco/src/browser/monaco-command-registry.ts index 83b587a25e2ff..d4d7168dc044f 100644 --- a/packages/monaco/src/browser/monaco-command-registry.ts +++ b/packages/monaco/src/browser/monaco-command-registry.ts @@ -63,7 +63,6 @@ export class MonacoCommandRegistry { protected execute(monacoHandler: MonacoEditorCommandHandler, ...args: any[]): any { const editor = this.monacoEditors.current; if (editor) { - editor.focus(); return Promise.resolve(monacoHandler.execute(editor, ...args)); } return Promise.resolve();