Is it possible to assign the return key as a shortcut for an anchor. Just like when submitting a form if one of the input fields are on focus.
I have looked a little at the jQuery hotkeys but since I’m lacking some skills in js I can’t quite figure it out.
My plan is that when the page loads the user can just press enter. Then an action will be performed followed by a redirect. I’m trying to do this
Reason for doing this is that I believe it’s a lot faster for the user to press enter than to move the cursor and click on the link before the actual action takes place.
Much more simple will be to auto focus the link:
No jQuery is required and as it’s focused, Enter press will trigger the click event.