提交 39f42623 编写于 作者: S Sandeep Somavarapu

Fix #53237

上级 a0b51fc9
......@@ -319,6 +319,7 @@ export class SearchWidget extends Widget {
this.replaceAllAction.label = SearchWidget.REPLACE_ALL_DISABLED_LABEL;
this.replaceActionBar = this._register(new ActionBar(this.replaceContainer));
this.replaceActionBar.push([this.replaceAllAction], { icon: true, label: false });
this.onkeydown(this.replaceActionBar.domNode, (keyboardEvent) => this.onReplaceActionbarKeyDown(keyboardEvent));
this.replaceInputFocusTracker = this._register(dom.trackFocus(this.replaceInput.inputElement));
this._register(this.replaceInputFocusTracker.onDidFocus(() => this.replaceInputBoxFocused.set(true)));
......@@ -442,6 +443,13 @@ export class SearchWidget extends Widget {
}
}
private onReplaceActionbarKeyDown(keyboardEvent: IKeyboardEvent) {
if (keyboardEvent.equals(KeyMod.Shift | KeyCode.Tab)) {
this.focusRegexAction();
keyboardEvent.preventDefault();
}
}
private submitSearch(refresh: boolean = true): void {
const value = this.searchInput.getValue();
const useGlobalFindBuffer = this.configurationService.getValue<ISearchConfigurationProperties>('search').globalFindClipboard;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册