{"name":"w3c-keyname","version":"1.1.7","description":"Get a KeyboardEvent.key-style string from an event","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/w3c-keyname.git"},"keywords":["browser","key","event","key code"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/w3c-keyname/issues"},"homepage":"https://github.com/marijnh/w3c-keyname#readme","gitHead":"9c3e2331bc1988c2a7f8430ffc48d873a70364af","_id":"w3c-keyname@1.1.7","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"dist":{"integrity":"sha512-y8LDSqui+xht2ffcWg7SqxveC6gUK2yhtEPz8ulULcjq2CRi6HfmDJdUAcDDoDW6U5FB2IXZqwlWA19OayAhxQ==","shasum":"81f0943e294fa6c6db16c01edf27783168f06996","tarball":"http://registry-npm.ywwl.com/w3c-keyname/download/w3c-keyname-1.1.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCj4t0wBf0gpcXBYUyQ0lzBV1O/d5KSIFgLQ9nc39/nngIhAOT/ttcJ4mJfq00JyJPhGUMRpspq4MwvVtPr/3EuDeHM"}],"size":2528,"noattachment":false,"key":"/w3c-keyname/-/w3c-keyname-1.1.7.tgz"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/w3c-keyname-1.1.7.tgz_1507148039066_0.21297883219085634"},"directories":{},"readme":"# W3C keyname\n\nTiny library that exports a function `keyName` that takes a keyboard event and\nreturns a\n[`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)-style\nstring. Will use the actual `key` property of the event if available,\nand fall back to a value synthesized from the `keyCode` otherwise.\n\nProbably often wrong on non-US keyboards, since the correspondence\nbetween a key code and the character it produces when shift is held is\npredicted based on a hard-coded table. Meant as a fallback for\n`KeyboardEvent.key`, not a replacement.\n\nThe lookup tables from key codes (`event.keyCode`) to names are\nexported as `base` (when Shift isn't held) and `shift` (when Shift is\nheld).\n\nLicense: MIT\n","publish_time":1507148039985,"_cnpm_publish_time":1507148039985,"dist-tags":{"latest":"2.2.8"}}