Info
Version: | 0.8.0.20131227 |
Author(s): | John Resig |
Last Update: | Thursday, January 2, 2014 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/tzuryby/jquery.hotkeys |
NuGet Url: | https://www.nuget.org/packages/jQuery.Hotkeys |
Install
Install-Package jQuery.Hotkeys
dotnet add package jQuery.Hotkeys
paket add jQuery.Hotkeys
jQuery.Hotkeys Download (Unzip the "nupkg" after downloading)
Dependencies
- jquery(1.4.2)
Tags
This plugin is based off of the plugin by Tzury Bar Yochay: http://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');
});
Types
Supported types are 'keydown', 'keyup' and 'keypress'
More details: https://github.com/tzuryby/jquery.hotkeys#readme.