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.

This plugin is based off of the plugin by Tzury Bar Yochay: https://github.com/tzuryby/hotkeys

The syntax is as follows:

$(expression).bind(types.keys, handler);
$(expression).unbind(types.keys, handler);

$(document).bind('keydown.ctrl_a', fn);

// e.g. replace '$' sign with 'EUR'
$('input.foo').bind('keyup.$', function(){
 this.value = this.value.replace('$', 'EUR');

Supported types are 'keydown', 'keyup' and 'keypress'

More details: https://github.com/tzuryby/jquery.hotkeys#readme

Install-Package jQuery.Hotkeys -Version
dotnet add package jQuery.Hotkeys --version
<PackageReference Include="jQuery.Hotkeys" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add jQuery.Hotkeys --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes


This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 30,992 1/2/2014
0.8.0 5,835 11/27/2012