background preloader

Keys

Facebook Twitter

Mousetrap - Keyboard shortcuts in Javascript. KeyboardJS Demo - "Build your app, I'll handle the keys." Press some keys...

KeyboardJS Demo - "Build your app, I'll handle the keys."

A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts. It can be used as both a standalone library or an AMD module (see RequireJS for details). KeyboardJS can support any locale, however out of the box it just comes with the US locale (for now). Adding a new locale is easy. Map your keyboard to an object and pass it to KeyboardJS.locale.register(localeName, localeDefinition) then call KeyboardJS.locale(localeName). Madrobby/keymaster. Arjaneising/TypeSequence - GitHub.