We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d1032 commit 3e2c52cCopy full SHA for 3e2c52c
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindReplaceWidget.ts
@@ -350,6 +350,10 @@ export abstract class SimpleFindReplaceWidget extends Widget {
350
}, 0);
351
}
352
353
+ public focus(): void {
354
+ this._findInput.focus();
355
+ }
356
+
357
public show(initialInput?: string): void {
358
if (initialInput && !this._isVisible) {
359
this._findInput.setValue(initialInput);
@@ -361,6 +365,8 @@ export abstract class SimpleFindReplaceWidget extends Widget {
361
365
dom.addClass(this._domNode, 'visible');
362
366
dom.addClass(this._domNode, 'visible-transition');
363
367
this._domNode.setAttribute('aria-hidden', 'false');
368
369
+ this.focus();
364
370
371
372
0 commit comments