Home > Web Front-end > JS Tutorial > jquery HotKeys easily handles keyboard event codes_jquery

jquery HotKeys easily handles keyboard event codes_jquery

WBOY
Release: 2016-05-16 19:01:39
Original
1559 people have browsed it

Usage:

Copy code The code is as follows:

$.hotkeys.add('key name ', function(){Purpose to be achieved});
//The key name can be a single key or a key combination. For example: ctrl c means pressing ctrl and c at the same time.

Cancel the event of a key:
Copy code The code is as follows:

$.hotkeys .remove('key name');

For specific demonstration effects, please go to a page I specially translated. You can test special keys and key combinations yourself: http://img. jb51.net/online/jquery_HotKeys.html

Download plug-in address::http://code.google.com/p/js-hotkeys/downloads/list

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template