void SearchBox_FinishInput(object sender, EventArgs e) { string value = SearchBox.StringValue; this.View.Window.MakeFirstResponder(RepoTab); if (RepoTab.RowCount > 0) { RepoTab.SelectRow(0, byExtendingSelection: false); } }
void SearchBox_FinishInput(object sender, EventArgs e) { string value = SearchBox.StringValue; if (_stringCommandHandler.IsCommand(value)) { if (_stringCommandHandler.Handle(value)) { SearchBox.StringValue = ""; } else { SearchBox.SelectText(this); } } else { this.View.Window.MakeFirstResponder(RepoTab); if (RepoTab.RowCount > 0) { RepoTab.SelectRow(0, byExtendingSelection: false); } } }