How to implement keyboard shortcuts on websites

Where to start if I want users to be able to use keyboard shortcuts on the site. I am currently using php and jquery to create a site. How can I add keyboard shortcuts besides the usual point and click method. Links to a site where I could start will do. Thanks.

+7
source share
5 answers

As a starter: http://plugins.jquery.com/project/hotkeys

[Edit 1/14/14: Dead link. See the Github page instead ]

+8
source

I used jQuery.hotkeys from John Resig and it works great with the latest jQuery. Take a look at the static sample pages on the github page.

+2
source

Perhaps look at the use of the accesskey attribute.

+2
source

Take a look at the Mousetrap.

http://craig.is/killing/mice

It supports all types of key events, as well as combinations and sequences.

+1
source

Try this plugin http://www.mattytemple.com/projects/shortcut-js/ . It is simplified by purpose and efficiently processes individual combinations.

If you need a more efficient implementation with more flexibility, go for Mousetrap Plugin as mentioned in @craig in the previous answer.

0
source

All Articles