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

Use accesskey to reimplement the keyboard #8

Open
shark0der opened this issue May 8, 2019 · 4 comments
Open

Use accesskey to reimplement the keyboard #8

shark0der opened this issue May 8, 2019 · 4 comments

Comments

@shark0der
Copy link

You can use HTML attribute accesskey to access the elements on the page. I've put together a small demo here: https://jsfiddle.net/x4ek56pc/

I've used jQuery in my example but that's just for the purpose of demonstration and it is not required for the accesskey to work.

@shark0der
Copy link
Author

@kkuchta
Copy link
Owner

kkuchta commented May 8, 2019

Very nice! Yeah, I'm pretty confident that accesskey is the missing piece I'd need to make this a lot smoother. I'm not sure exactly when I'll come back to this - maybe on some upcoming train rides, but I'd love to rewrite it around that concept. :)

@KataFF
Copy link

KataFF commented Aug 13, 2023

You can use HTML attribute accesskey to access the elements on the page. I've put together a small demo here: https://jsfiddle.net/x4ek56pc/

I've just tested your fiddle on Firefox 116 on Manjaro GNOME and it does not work; Alt+B gets inhibited by the browser to open the drop-down bookmarks menu. Alt+A does nothing, as does A and B.

@KataFF
Copy link

KataFF commented Aug 13, 2023

Oh, never mind, just checked and the key combo for accesskeys is different on Firefox (see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey )

It does work with Alt+Shift+A/B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants