提交 dcce4939 编写于 作者: S Sandeep Somavarapu

#13041 - Down arrow on Search is not navigating to results

上级 57058519
......@@ -488,16 +488,16 @@ export class SearchViewlet extends Viewlet {
public focusNextInputBox(): void {
if (this.searchWidget.searchInputHasFocus()) {
this.searchWidget.focus(true, true);
if (this.searchWidget.isReplaceShown()) {
this.searchWidget.focus(true, true);
} else {
this.moveFocusFromSearchOrReplace();
}
return;
}
if (this.searchWidget.replaceInputHasFocus()) {
if (this.showsFileTypes()) {
this.toggleFileTypes(true, this.showsFileTypes());
} else {
this.selectTreeIfNotSelected();
}
this.moveFocusFromSearchOrReplace();
return;
}
......@@ -513,6 +513,14 @@ export class SearchViewlet extends Viewlet {
}
}
private moveFocusFromSearchOrReplace() {
if (this.showsFileTypes()) {
this.toggleFileTypes(true, this.showsFileTypes());
} else {
this.selectTreeIfNotSelected();
}
}
public focusPreviousInputBox(): void {
if (this.searchWidget.searchInputHasFocus()) {
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册