jaywcjlove / hotkeys-js

âž· A robust Javascript library for capturing keyboard input. It has no dependencies.
https://jaywcjlove.github.io/hotkeys-js
MIT License
6.69k stars 413 forks source link

Can Supported Keys be customized? #467

Open kiwiflydream opened 11 months ago

kiwiflydream commented 11 months ago

The official documentation describes it as follows:

The following special keys can be used for shortcuts: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 through f19, num_0 through num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide.

However, in use, these are far from sufficient, for example, <, @, /, etc. are often used. Can we come up with a configuration where we can specify the supported keys.

Thank you!🫡