No commit activity in last 3 years
No release in over 3 years
jQuery Hotkeys is a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 3.1
 Project Readme

jquery-hotkeys-rails

jquery-hotkeys-rails wraps the jquery-hotkeys JavaScript library in a rails engine for simple use with the asset pipeline provided by rails 3.1. The gem includes the development (non-minified) source for ease of exploration. The asset pipeline will minify in production.

Usage

Add this line to your application's Gemfile:

gem 'jquery-hotkeys-rails'

And then execute:

$ bundle

Add the following directive to your Javascript manifest file (application.js):

//= require jquery-hotkeys

Versioning

Ordinarily, I try to keep gem versions in line with the version of the assets they wrap, but there are some complications with jquery-hotkeys.

There does not seem to be an official version for what is now widely-considered the canonical version of jquery-hotkeys. The last versioned release was 0.7.9. I believe John Resig's fork applies some changes on top of that for compatibility with newer versions of JQuery. I've decided to version the gem as 0.7.9 in case an official 0.7.10 ever arises.