Skip to content

Commit 6d5dec8

Browse files
author
Akos Kitta
committed
fix: the focus in the sketchbook widget
Ref: #1720 Signed-off-by: Akos Kitta <[email protected]>
1 parent 9b49712 commit 6d5dec8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: arduino-ide-extension/src/browser/widgets/sketchbook/sketchbook-widget.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,7 @@ export class SketchbookWidget extends BaseWidget {
128128

129129
protected override onActivateRequest(message: Message): void {
130130
super.onActivateRequest(message);
131-
132-
// TODO: focus the active sketchbook
133-
// if (this.editor) {
134-
// this.editor.focus();
135-
// } else {
136-
// }
137-
this.node.focus();
131+
this.getTreeWidget().node.focus;
138132
}
139133

140134
protected override onResize(message: Widget.ResizeMessage): void {

0 commit comments

Comments
 (0)