Skip to content

Commit 6fbde2f

Browse files
authored
Merge pull request #3374 from onesounds/050323_FixLastCaret
Fix cursor doesn't move to the end on initial launch
2 parents 017cc5a + 0ef4b05 commit 6fbde2f

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)