Skip to content

Commit 0ef4b05

Browse files
committed
Add Initial state for QueryTextBoxCursorMovedToEnd
1 parent 839c26d commit 0ef4b05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Flow.Launcher/MainWindow.xaml.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
143143

144144
// Since the default main window visibility is visible, so we need set focus during startup
145145
QueryTextBox.Focus();
146-
146+
// Set the initial state of the QueryTextBoxCursorMovedToEnd property
147+
// Without this part, when shown for the first time, switching the context menu does not move the cursor to the end.
148+
_viewModel.QueryTextCursorMovedToEnd = false;
147149
_viewModel.PropertyChanged += (o, e) =>
148150
{
149151
switch (e.PropertyName)

0 commit comments

Comments
 (0)