Skip to content

Commit e6b6f12

Browse files
committed
Update NavigationToolbar.xaml.cs
1 parent 8792adb commit e6b6f12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Files.App/UserControls/NavigationToolbar.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ private async void Omnibar_QuerySubmitted(Omnibar sender, OmnibarQuerySubmittedE
304304

305305
await DialogDisplayHelper.ShowDialogAsync(Strings.InvalidCommand.GetLocalizedResource(),
306306
string.Format(Strings.InvalidCommandContent.GetLocalizedResource(), args.Text));
307+
308+
(MainPageViewModel.SelectedTabItem?.TabItemContent as Control)?.Focus(FocusState.Programmatic);
309+
return;
307310
}
308311

309312
// Search mode

0 commit comments

Comments
 (0)