-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Searchbar clear #3262
Searchbar clear #3262
Conversation
Clear the searchbar on up-key after the first entry and remove tab focus from searchbar clear button. This way, the tab order is fixed again while keeping the possibility to use the arrow mapping for clearing the search bar.
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 and works nicely. Thank you.
2d2d9bf
to
2067fa4
Compare
src/widget/wsearchlineedit.cpp
Outdated
@@ -97,6 +97,7 @@ WSearchLineEdit::WSearchLineEdit(QWidget* pParent) | |||
|
|||
m_clearButton->setCursor(Qt::ArrowCursor); | |||
m_clearButton->setObjectName(QStringLiteral("SearchClearButton")); | |||
m_clearButton->setFocusPolicy(Qt::ClickFocus); |
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.
I don't agree:
how do you quickly clear the search from a controller now?
Scrolling all the way to the top of the search history is no option for me.
I know this was requested on Zulip because someone uses a custom mappin for the Trax encoder press and wants to reduce the Tabs necessary to get to the tracks table, but the default most common mapping is [Library],GoToItem.
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.
The current system is also problematic for blind users as the tab order changes depending on the state of the search bar.
I'm ambivalent about the focus behaviour. What's the general stand towards this ?
Since there was not much feedback and I don't care that much, I reverted the focus change and let the keyup clearing stay. Ready for merge. |
I have tested the behavior again and found that the whole history is cleared with the clear icon: Do we need the clear history feature? If yes, we may add a dummy entry at the very end. This can be merged as it is IMHO. @rons0: What do you think? |
Well, it works when applied to a search that is present already, index = 0 We should stop the saveTimer and clear the field in that case. |
please check poelzi#4 |
btw ping @poelzi |
actually ready to be merged, but now there's a small issue with the popup:
|
could fix it by only filtering for Up/Down when the popup is closed, but I don't wanna highjack your PR |
poelzi#5 |
Search clear fix
Thank you! |
Smaller updates to the searchbar.
Add pseudo entry to clear searchbar with up key:
https://mixxx.zulipchat.com/#narrow/stream/113295-controller-mapping/topic/Clear.20input.20of.20search.20bar
Fixes bug https://bugs.launchpad.net/bugs/1902597