Merge pull request #3374 from onesounds/050323_FixLastCaret

Fix cursor doesn't move to the end on initial launch
This commit is contained in:
DB P 2025-03-23 19:37:29 +09:00 committed by GitHub
commit 6fbde2f95d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,9 @@ namespace Flow.Launcher
// 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)