From 0ef4b0580881df69a2e396ce570d488ef9ba4108 Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 23 Mar 2025 17:21:03 +0900 Subject: [PATCH] Add Initial state for QueryTextBoxCursorMovedToEnd --- Flow.Launcher/MainWindow.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)