Skip to content
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

Also clear text when clearing object view #2642

Merged
merged 1 commit into from
May 19, 2022
Merged

Conversation

pjrobertson
Copy link
Member

Fixes #2289

@skurfer
Copy link
Member

skurfer commented Feb 16, 2022

I’m still able to reproduce the original issue with this change.

It seems to me like the text mode string should be cleared as soon as you initiate a search and something else gets selected. Or maybe the current behavior is fine and we shouldn’t worry about it? 🤷🏻‍♂️

@pjrobertson
Copy link
Member Author

Hmm... am I following the right steps? See below:

s.mov

@pjrobertson pjrobertson added this to the 2.1.0 milestone Feb 21, 2022
@skurfer
Copy link
Member

skurfer commented Feb 23, 2022

So, I noticed something strange in your video. As you hit Delete, the selection changes. I had never seen that happen, then I remembered you’re a monster and use that one-character-at-a-time delete preference. 😜

If I disable double-Delete to clear the selection, I see what you see.

Maybe we should clear the text string inside clearSearch instead?

@pjrobertson
Copy link
Member Author

You caught me!
Screenshot 2022-02-23 at 11 19 41

Maybe we should clear the text string inside clearSearch instead?

Should be a simple enough fix, yes. I'll look into it and update this PR.

@skurfer
Copy link
Member

skurfer commented Feb 23, 2022

That might be too heavy handed. It’s called from 11 places. Maybe we should create a clearSearchAndText that calls clearSearch and adds your new code? Or just repeat the code in that method.

@pjrobertson
Copy link
Member Author

OK, so you were right that clearing the text string in clearSearch was too heavy handed. I just tried that and it broke everything. That's because clearSearch is called every time you type anything into the search field (it's more akin to 'reset and get ready to redo another search').

I cleared the string in the 3 places I can think it makes sense:

  1. Deleting backwards with 'Pressing the Delete key clears the whole search string' off (my case)
  2. Deleting backwards with 'Pressing the Delete key clears the whole search string' on (Rob's case)
  3. Pressing ⌃U to clear the search object

I think that's good enough for now :)

@pjrobertson pjrobertson modified the milestones: 2.1.0, 3.0.0 Apr 23, 2022
@pjrobertson pjrobertson merged commit 2276479 into main May 19, 2022
@pjrobertson pjrobertson deleted the deleteBackwards branch May 19, 2022 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text entry text isn’t cleared
2 participants