{"name":"w3c-keyname","version":"1.1.0","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":"cb169a2878c50a2ee7aef9e05e678eaae4d0d49d","_id":"w3c-keyname@1.1.0","scripts":{},"_shasum":"fc02408bb5f45bb7dcaea12e062de5110faec46b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"fc02408bb5f45bb7dcaea12e062de5110faec46b","tarball":"http://registry-npm.ywwl.com/w3c-keyname/download/w3c-keyname-1.1.0.tgz","integrity":"sha512-SBsiPVHWRsC3IIV6K+11sDHSIcI6qFoaSdw8cACarLxIBq2nr7O9b+BMJi8eGPfdLV2b25RzDwl6EZD1jQwpQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiGDocQULPqKWUDHnZ76yiYbeN7Xdoaxv9VlRE4kyd4gIhALR1AFcWr6npiIJrxQrkrlRVgI7ArlOqSSvuZGbhmP58"}],"size":2191,"noattachment":false,"key":"/w3c-keyname/-/w3c-keyname-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/w3c-keyname-1.1.0.tgz_1476370743109_0.4828121371101588"},"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":1476370745016,"_cnpm_publish_time":1476370745016,"dist-tags":{"latest":"2.2.8"}}