📜 ⬆️ ⬇️

Keypress 2.0.0

Seventeen days ago (January 19, 2014), a new version (2.0.0) of the Keypress javascript library was released , designed for convenient programming of browser reactions to events from keystrokes (and from releases) of keys on the keyboard.

The list of changes published on Github allows you to confidently announce the following: the most important advantage of the new version was the ability to catch events not only in the whole window, but also for one or several individual DOM elements. Now, when programming different reactions for different elements on web pages, we can conveniently resort to the Keypress library instead of those earlier and more popular counterparts (for example, jQuery.Hotkeys ), which are inferior to Keypress in wealth of possibilities.

[Keypress]
')
The possibilities are:


For each single key (or for a combination) additional settings are possible. These settings allow you to do this if necessary:


Being aware of the benefits of such flexibility of definitions and settings, I intend to use the Keypress library in the future, and I wish you the same.

Source: https://habr.com/ru/post/211456/


All Articles