Open NCC1701M opened 2 years ago
The lib should support the function to convert a KeyboardEvent to a key string.
For example:
hotkeys("*", (evt, handler) => { console.log("You've pressed: " + handler.toKeyString()); // Example output: You've pressed: ctrl+a+s });
I added a similar issue many months ago, but there were no replies:
https://github.com/jaywcjlove/hotkeys/issues/360
User friendliness and customisation suffer because of lack of this feature.
The lib should support the function to convert a KeyboardEvent to a key string.
For example: