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

The / hotkey does not work #88

Open
Artur- opened this issue Jun 27, 2023 · 9 comments
Open

The / hotkey does not work #88

Artur- opened this issue Jun 27, 2023 · 9 comments

Comments

@Artur-
Copy link

Artur- commented Jun 27, 2023

In the readme there is

<a href="/search" data-hotkey="s,/">Search</a>

the same code is used in the GitHub toolbar that says "Type / to search".

The problem is that pressing / (shift + 7 on a finnish keyboard) does not trigger the search. It does nothing. Pressing "s" does trigger it.

@keithamus
Copy link
Member

For shortcuts like these to work, you must have "Character keys" enabled within the accessibility options within your GitHub settings. Please also make sure you're not using a browser extension that might override these, such as vim-mode extensions.

a screenshot of the accessibility section in GitHub settings. It shows the title "Accessibility", the subtitle "Keyboard Shortcuts" followed by the subheading "General". There is a checkbox labelled "Character Keys" which has been checked. The description for Character keys says "Enable GitHub shortcuts that don't use modifier keys in their activation. For example, the g n shortcut to navigate notifications, or question mark ? to view context relevant shortcuts. Learn more about character key shortcuts."

@Artur-
Copy link
Author

Artur- commented Jun 27, 2023

Uh... so to use the shortcut mentioned by default on the frontpage of all repositories in GitHub, I must configure something?

@Artur-
Copy link
Author

Artur- commented Jun 27, 2023

Seems like they are enabled by default though
image

@Artur-
Copy link
Author

Artur- commented Jun 27, 2023

Removing all extension make no difference either

@keithamus
Copy link
Member

Uh... so to use the shortcut mentioned by default on the frontpage of all repositories in GitHub, I must configure something?

The option is enabled by default.

Could you please visit https://www.toptal.com/developers/keycode and press the / key, and take a screenshot of the values that come back. Thank you.

@Artur-
Copy link
Author

Artur- commented Jun 27, 2023

image

@formspiel
Copy link

Hi,
I can confirm that the same code is true on the German keyboard.

It's super awesome that the icon is visually present to support learnability, but I tried so often, and it never worked. It's a bit disappointing. Hope I can also help to get this to work.

Yes, accessibility option is enabled.

@keithamus
Copy link
Member

Can you please visit this page: https://github.github.io/hotkey/examples/hotkey_mapper.html and, once loaded, tap the desired key and report back with a screenshot - and perhaps copy the code? Thanks.

@formspiel
Copy link

To achieve "/" on a German keyboard, I've to press "shift" and "7"
The Hotkey Mapper output is:
Shift+/

image

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

No branches or pull requests

3 participants