Skip to content

Commit 3e2c52c

Browse files
committed
Focus notebook find widget when it's shown
1 parent f5d1032 commit 3e2c52c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/contrib/codeEditor/browser/find/simpleFindReplaceWidget.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ export abstract class SimpleFindReplaceWidget extends Widget {
350350
}, 0);
351351
}
352352

353+
public focus(): void {
354+
this._findInput.focus();
355+
}
356+
353357
public show(initialInput?: string): void {
354358
if (initialInput && !this._isVisible) {
355359
this._findInput.setValue(initialInput);
@@ -361,6 +365,8 @@ export abstract class SimpleFindReplaceWidget extends Widget {
361365
dom.addClass(this._domNode, 'visible');
362366
dom.addClass(this._domNode, 'visible-transition');
363367
this._domNode.setAttribute('aria-hidden', 'false');
368+
369+
this.focus();
364370
}, 0);
365371
}
366372

0 commit comments

Comments
 (0)