-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
(Desktop) Fixes #4769: highlight existing text in global search field #4773
Conversation
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.
LGTM
Please read the guidelines before posting a pull request. You didn't provide test units, didn't explain why they are missing, didn't provide steps to manually test. Just because it's obvious to you doesn't mean you can just ignore the guidelines. |
He posted a video how it looks after. That is IMO the test case for this issue. (Only the before case was taken from my original issue.) |
Ohh sorry laurent, didn't mean to do that. Obviously, i forgot to mention about the unit tests. Although if you look at description |
I'm just wondering, is there a plan to merge this anytime soon? |
I'm thinking that too. Not able to make any other fixes too. |
Yes that looks good, thanks for the pull request @coderrsid. |
Fixes #4769
Problem :
When using the shortcut (default: CtrlCmd+Shift+F) or the menu item Edit > Search in all notes, the focus is set to the global search field. However, if there's already text in the field, the cursor is placed at the end and typing appends to the existing search term.
Solution:
This change should highlight the current text, so that it will be replaced by the new search term.
Unit Test
Not required as it's a selection of text if the focus on input element.
Manual Testing (after merging)
Before
After