-
Notifications
You must be signed in to change notification settings - Fork 1k
how to make searching/filtering from homepage richer? #3462
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
Comments
Clarifications in this followup: the home page includes an invitation to "search" or "browse" but there's no filter list on the front page, which means Wing cannot simply apply the filter to his first search. I wonder if #727 would help here -- as soon as the user starts typing, one of the lookahead menus we provide could be for structured/faceted filtering by classifier. |
I'm not sure if this deserves a separate issue, but one thing that I would love to be able to do is hit a key and have the cursor focused on the search box (https://crates.io uses |
This functionality was added in #10395 with the |
I'm using a Dvorak keyboard layout and the implementation of this feature doesn't work on my machine (Ubuntu Linux in both Chrome and Firefox). To clarify: hitting the |
The implementation is using JavaScript
This maps to a physical key, not logical. Would it be preferable to continue to use Dvorak |
Every website I've use / on used the non-physical mapping when I'm in
Dvorak (GitHub, Gmail, etc), so I think that would be preferable. 👍
…On Tue, Mar 7, 2023, 11:40 Mike Fiedler ***@***.***> wrote:
It looks like the implementation of this is using a physical keyboard
layout so non-QWERTY layout mappings act unpredictably.
The implementation is using JavaScript KeyboardEvent.code
<https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code>,
see here:
https://github.com/pypi/warehouse/blob/c195b213d8e2fda6ef0d88d60ce006f8831ec681/warehouse/static/js/warehouse/controllers/search_focus_controller.js#L23
This maps to a physical key, not logical.
Would it be preferable to continue to use Dvorak z due to placement, or
is it common to press / ?
—
Reply to this email directly, view it on GitHub
<#3462 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFVKBWP3GWYLQ2P35M7MLW26FMLANCNFSM4EYA7SGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The `.code` method maps to physical keys on a keyboard, and different layouts may place them somewhere else. See: pypi#3462 (comment) Signed-off-by: Mike Fiedler <[email protected]>
@treyhunner fix should be live |
That was quick. Thanks @miketheman! |
William Ray Wing writes:
I'm asking for more info here and checking whether this is connected to #3454.
The text was updated successfully, but these errors were encountered: