Skip to content

Commit

Permalink
fix notebook editor focusing
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <[email protected]>
  • Loading branch information
jonah-iden committed Sep 27, 2024
1 parent b80aa74 commit 80d68be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/notebook/src/browser/notebook-editor-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export class NotebookEditorWidget extends ReactWidget implements Navigatable, Sa

protected override onActivateRequest(msg: Message): void {
super.onActivateRequest(msg);
this.node.focus();
(this.node.getElementsByClassName('theia-notebook-main-container')[0] as HTMLDivElement)?.focus();
}

getResourceUri(): URI | undefined {
Expand Down

0 comments on commit 80d68be

Please sign in to comment.