jaywcjlove / hotkeys-js

➷ A robust Javascript library for capturing keyboard input. It has no dependencies.

Home Page:https://jaywcjlove.github.io/hotkeys-js

Repository from Github https://github.comjaywcjlove/hotkeys-jsRepository from Github https://github.comjaywcjlove/hotkeys-js

[user friendly feature] Add ability to specify a label to the shortcut

msimic opened this issue · comments

Please add ability to specify a label when registering a shortcut:

hotkeys(shortcut: string, scope: string, func: Function, label: string)

so that we can list them with

hotkeys.getAllKeyCodes()

and present to the user the label of what the shortcut does.

This should be trivial to implement, hopefully.