diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index d2e9dade9ac..ec8649efcbb 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -143,7 +143,9 @@ private async void OnLoaded(object sender, RoutedEventArgs _) // Since the default main window visibility is visible, so we need set focus during startup QueryTextBox.Focus(); - + // Set the initial state of the QueryTextBoxCursorMovedToEnd property + // Without this part, when shown for the first time, switching the context menu does not move the cursor to the end. + _viewModel.QueryTextCursorMovedToEnd = false; _viewModel.PropertyChanged += (o, e) => { switch (e.PropertyName)