Skip to content

Conversation

@taooceros
Copy link
Member

fix Custom Plugin Hotkey not deselect text when current query text is equal to custom plugin hotkey.

The part I describe in #565.

@taooceros taooceros self-assigned this Jul 18, 2021
@taooceros taooceros requested a review from jjw24 July 18, 2021 08:10
Comment on lines -332 to -338
private void OnTextChanged(object sender, TextChangedEventArgs e)
private void MoveQueryTextToEnd()
{
if (_viewModel.QueryTextCursorMovedToEnd)
{
QueryTextBox.CaretIndex = QueryTextBox.Text.Length;
_viewModel.QueryTextCursorMovedToEnd = false;
}
Copy link
Member Author

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;
Copy link
Member Author

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

@jjw24
Copy link
Member

jjw24 commented Jul 18, 2021

fix Custom Plugin Hotkey not deselect text when current query text is equal to custom plugin hotkey

Does this happen in dev branch? I remmeber I checked that custom query plugin hotkey doesn't select all text

@taooceros
Copy link
Member Author

taooceros commented Jul 18, 2021

fix Custom Plugin Hotkey not deselect text when current query text is equal to custom plugin hotkey

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.

@jjw24
Copy link
Member

jjw24 commented Jul 18, 2021

Oh ok. After this goes in we should be good to release 1.8.0 right?

@jjw24 jjw24 merged commit 498cad7 into dev Jul 18, 2021
@jjw24 jjw24 deleted the fixDeselectWhenQueryTextNotChanged branch July 18, 2021 11:50
@jjw24 jjw24 added the bug Something isn't working label Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants