jQuery.Hotkeys - lets you watch for keyboard events anywhere in your code supporting almost any key combination
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
- 上一篇 »报错--->java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delect from testd
- 下一篇 »python读取文件报错:pandas.errors.ParserError: iterator should return strings, not bytes ,did you open the file in text mode?