mousetrap
mousetrap copied to clipboard
Extending documentation
I'm searching for a keyboard library and yours seem great. But at first glance at the documentation, I can't see anywhere that would allow me to bind all alphabet characters, such as 'a-z' or 'A-Z' and numbers, such as '0-9'.
I don't want to bind for each of the 26 letters, plus numbers. Is that what is assumed?
Additionally, once I bound the keyboard alphabet (ie: 'a-z' and 'A-Z'), how do receive such events in the handler? There doesn't seem to be an example of you actually "consuming" the event, other than to statically output a string to console.
Please help to enrich your documentation so that we (developers) can quickly be up and running.
Great work BTW!
Is binding just numbers like 0-9
supported?