-
-
Notifications
You must be signed in to change notification settings - Fork 455
fix Custom Plugin Hotkey not deselect text #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… custom plugin hotkey
| private void OnTextChanged(object sender, TextChangedEventArgs e) | ||
| private void MoveQueryTextToEnd() | ||
| { | ||
| if (_viewModel.QueryTextCursorMovedToEnd) | ||
| { | ||
| QueryTextBox.CaretIndex = QueryTextBox.Text.Length; | ||
| _viewModel.QueryTextCursorMovedToEnd = false; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add this once we want to do something else when text changed, but currently it would be better to call it when the property changed.
| { | ||
| QueryTextCursorMovedToEnd = true; | ||
| QueryText = queryText; | ||
| QueryTextCursorMovedToEnd = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change order to avoid unintended position changed before the QueryText Changed
Does this happen in dev branch? I remmeber I checked that custom query plugin hotkey doesn't select all text |
It does. It didn't select all text, but if the text is already selected, Flow is not able to deselect it. |
|
Oh ok. After this goes in we should be good to release 1.8.0 right? |
fix Custom Plugin Hotkey not deselect text when current query text is equal to custom plugin hotkey.
The part I describe in #565.