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.
#r "nuget: jQuery.Hotkeys,"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes


NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 45,833 1/2/2014
0.8.0 6,411 11/27/2012