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

Anchors should work with "data-hotkey" attribute #1420

Closed
docoliver opened this issue Sep 30, 2019 · 1 comment
Closed

Anchors should work with "data-hotkey" attribute #1420

docoliver opened this issue Sep 30, 2019 · 1 comment

Comments

@docoliver
Copy link

As of now, an onclick attribute is required for all elements with the attribute data-hotkey in order for the hotkey to actually work.

You can't set hotkeys for links unless you add onclick="window.location.href='website.com'" as an attribute. I think this is tedious and the data-hotkey should look for the href attribute on an anchor, and once the specified hotkey is pressed, the redirect is triggered.

@olton
Copy link
Owner

olton commented Oct 5, 2019

Hi, thx for this report. I added this feature in 4.3.2. You can test it from GitHub 4.3.2 branch or get from CDN for develop branch.

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

No branches or pull requests

2 participants