-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
40 lines (40 loc) · 2.43 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "vkey",
"version": "1.0.0",
"description": "map ev.keyCode to human names",
"main": "index.js",
"scripts": {
"start": "echo \"open localhost:3030/\" && ./node_modules/.bin/browservefy test.js 3030 -- -d"
},
"repository": {
"type": "git",
"url": "git://github.com/chrisdickinson/vkey.git"
},
"keywords": [
"keyCode",
"keyboard",
"key",
"virtual",
"vkey"
],
"author": {
"name": "Chris Dickinson",
"email": "chris@neversaw.us"
},
"license": "MIT",
"readmeFilename": "README.md",
"devDependencies": {
"browservefy": "0.0.3",
"browserify": "~1.17.3"
},
"readme": "# vkey\n\nvirtual `keyCode` to human name mapping. let's team up to quash all of the `keyCode` inconsistencies that we can!\n\n```javascript\n\nvar vkey = require('vkey')\n\ndocument.body.addEventListener('keydown', function(ev) {\n console.log(vkey[ev.keyCode])\n}, false)\n\n```\n\ncobbled together from [Benvie's Keyboard](https://github.com/Benvie/Keyboard) and [MDN](https://developer.mozilla.org/en-US/docs/DOM/KeyboardEvent).\n\n## contributing / making life better for everyone\n\n**EASY MODE, Step 0**: Visit [the test page](http://didact.us/vkey/). Go to **Step 2**.\n\n**Step 1**: get the repo and run the test site.\n\n```bash\n$ git clone git://github.com/chrisdickinson/vkey.git\n$ cd vkey.git\n$ npm install --dev .\n$ npm start\n$ # open localhost:3030\n\n```\n\n**Step 2**: open the site in all the browsers you have at your command!\nmash keys! note inconsistencies!\n\n**Step 3**: open an issue with:\n\n1. your operating system\n2. the browser + version\n3. (as best as you can describe), what kind of keyboard you're using. images welcome! crude drawings of keyboards less welcome, but still a little welcome.\n4. what key you pressed\n5. what result you expected\n6. what result you got\n\n**Step 3, HARD MODE**: open a pull request with all of the above, and a minimally invasive fix!\n\n## deviations thus far\n\n* meta left and right are reduced to `<meta>`, because no one really seems to support it correctly.\n* `<unk>` is coerced to `<menu>` on OSX, since it has no idea what that button is (using a dell keyboard.)\n\n# license\n\nMIT\n",
"bugs": {
"url": "https://github.com/chrisdickinson/vkey/issues"
},
"_id": "vkey@1.0.0",
"dist": {
"shasum": "8c3f89099824e58f5d0dd547f00cc82e336d9b87"
},
"_from": "vkey@X.X.X",
"_resolved": "https://registry.npmjs.org/vkey/-/vkey-1.0.0.tgz"
}