About

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.

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'

 

 

Keyborads

https://rawgit.com/jeresig/jquery.hotkeys/master/test-static-01.html

 

Download

jquery.hotkeys.zip

 

相关文章:

  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2022-02-12
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-18
  • 2022-02-22
  • 2022-12-23
  • 2022-01-20
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案