Przeglądaj źródła

After some other changes in the console code, we don’t need to explicitly focus ourselves again.

Jason Grout 6 lat temu
rodzic
commit
9b1dd0a91e
1 zmienionych plików z 0 dodań i 5 usunięć
  1. 0 5
      packages/notebook-extension/src/index.ts

+ 0 - 5
packages/notebook-extension/src/index.ts

@@ -804,16 +804,11 @@ function addCommands(app: JupyterLab, services: ServiceManager, tracker: Noteboo
         }
         // open a console, create if needed
         if (code) {
-          editor.focus();
           return commands.execute('console:open', {
               path,
               insertMode: 'split-bottom',
               activate: false
             }).then((panel) => {
-              // TODO: If the panel was created, the editor loses focus.
-              // if (!editor.hasFocus) {
-              //   editor.focus();
-              // }
               commands.execute('console:inject', { activate: false, code, path });
             }).catch((error) => {
               console.log(error);