marijnh

marijnh/w3c-keyname

Get a KeyboardEvent.key-style string from an event

JavaScript
33
8
MIT License

W3C keyname is a tiny library that provides a `keyName` function to return a `KeyboardEvent.key`-style string from a keyboard event. It prioritizes the actual `key` property if available, and falls back to a synthesized value from `keyCode` using hard-coded lookup tables. This library is intended as a fallback for environments where `KeyboardEvent.key` is not supported, though it may be less accurate on non-US keyboards.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of marijnh/w3c-keyname

Account's avatar
Next-generation ES module bundler

Support the repos that depend on marijnh/w3c-keyname

Top contributors

marijnh's profile
marijnh
51 contributions
laurentpellegrino's profile
laurentpellegrino
1 contributions
torifat's profile
torifat
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet