{"_id":"browserkeymap","_rev":"8-4711956d1606ebc5bd125f20dbbfb856","name":"browserkeymap","description":"Map browser events to key names, and key names to values","dist-tags":{"latest":"2.0.2"},"versions":{"0.1.0":{"name":"browserkeymap","version":"0.1.0","description":"Map browser events to key names, and key names to values","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"keywords":["browser","key","event","keymap"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"homepage":"https://github.com/marijnh/browserkeymap#readme","gitHead":"f719eb741306c398457064d63d4529c841eb13b3","_id":"browserkeymap@0.1.0","scripts":{},"_shasum":"aa6dde5341caba581fa25aabbbf69656d6035888","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"aa6dde5341caba581fa25aabbbf69656d6035888","tarball":"https://registry.npmjs.org/browserkeymap/-/browserkeymap-0.1.0.tgz","integrity":"sha512-7wzikovLjm7szV2jxrno4k4+sN/1cU0ckcf4TochQKXb3K3aEiwl81qFbKhBhEOZtDhyv655jmc7td3OF10MMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUwXxnrZHbocE34W4givj/fdzyNm/R/VSXP49m8Q8dPAiEA3e2vhJMKZrdxeqyx6O3X8bVVRujed5Q4dYFiwQwLXyA="}]}},"1.0.0":{"name":"browserkeymap","version":"1.0.0","description":"Map browser events to key names, and key names to values","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"keywords":["browser","key","event","keymap"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"homepage":"https://github.com/marijnh/browserkeymap#readme","gitHead":"0830c851feb33410258b58d2bae2356e215748fd","_id":"browserkeymap@1.0.0","scripts":{},"_shasum":"1f2d9aa605c15eb24b5b960a0d4f8872b0c0f3a1","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"1f2d9aa605c15eb24b5b960a0d4f8872b0c0f3a1","tarball":"https://registry.npmjs.org/browserkeymap/-/browserkeymap-1.0.0.tgz","integrity":"sha512-fAoWfNJ6OcXy9lMvVSee4DmNej7X2gzzD28wMstYKeqYVcA7/2dsBmh9/p3+vLt/YT0vOVgbi6RUpDrYxvKR9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDwXo72fWm8ztpTm8ovAel0fH8Lw+pfgyPtV/4W1a5ZAIgXMwuBpC04DrhohUuJeJoMuB7DYGyw9WKpOD0/y5heng="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/browserkeymap-1.0.0.tgz_1464270098172_0.7848367760889232"}},"1.0.1":{"name":"browserkeymap","version":"1.0.1","description":"Map browser events to key names, and key names to values","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"keywords":["browser","key","event","keymap"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"homepage":"https://github.com/marijnh/browserkeymap#readme","gitHead":"2325c341e9132a6798661b1b271282978bbf06e5","_id":"browserkeymap@1.0.1","scripts":{},"_shasum":"e4b49023db77723b688319e1148dbf61fd026e0f","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"e4b49023db77723b688319e1148dbf61fd026e0f","tarball":"https://registry.npmjs.org/browserkeymap/-/browserkeymap-1.0.1.tgz","integrity":"sha512-Xx/yDpDYLla7cb9RNNpL/N866G4bKAGZWTgGSCpQtg4/DGki2wOBZuG/as5pLPpRAYRwdteRkbcImmBsTysyTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8B/pBQ6C37hpSw5LM2+9q3/noAGh232XdM1tlxQX6IgIhAO/7GkwPqmcn6gBVbvGfDoKIc68a1SWBLEndoD3qeQ84"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/browserkeymap-1.0.1.tgz_1465135697529_0.43772901641204953"}},"2.0.0":{"name":"browserkeymap","version":"2.0.0","description":"Map browser events to key names, and key names to values","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"keywords":["browser","key","event","keymap"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"homepage":"https://github.com/marijnh/browserkeymap#readme","gitHead":"0f61020d51e503aa65e3a163e9a9a3529236d84a","_id":"browserkeymap@2.0.0","scripts":{},"_shasum":"bf22558a0faf4bbb585a604f5602479ce21d4b3b","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"bf22558a0faf4bbb585a604f5602479ce21d4b3b","tarball":"https://registry.npmjs.org/browserkeymap/-/browserkeymap-2.0.0.tgz","integrity":"sha512-b2fylYXmzFEOK+TiD+unQr6Ko+pz+nvT3Q95XkXvVyRpXgOUFNc+8u6XSgNa+lmQWFPXGhG4ZcyFYnRmpMRMPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaBh7wfQSBLt/AqmM0H2pyp3lvzG9ECekL/0xnDnKDBAiEAvpIP3TrssL8C7IOElqDQQVs4hjzA6XKZD1UbzFfLU0o="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/browserkeymap-2.0.0.tgz_1466493583805_0.28624600637704134"}},"2.0.1":{"name":"browserkeymap","version":"2.0.1","description":"Map browser events to key names, and key names to values","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"keywords":["browser","key","event","keymap"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"homepage":"https://github.com/marijnh/browserkeymap#readme","gitHead":"1cff2d1f64c85bf6b461b3d55c457eed3d44e7ee","_id":"browserkeymap@2.0.1","scripts":{},"_shasum":"350f8d376bf0f12027e9a130d60ff54fe6681c2d","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"350f8d376bf0f12027e9a130d60ff54fe6681c2d","tarball":"https://registry.npmjs.org/browserkeymap/-/browserkeymap-2.0.1.tgz","integrity":"sha512-tNo55svK3mpGLVtQoPMwIOSPbMFWm1n7mkeEIXn0ILGKcsf/0Scc4ck5gLeciKFc59W9JjSzHpdXzFEfBbbjOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC45txDQ/AWrBBKLb74D9WWRXV3bncQdFIKcvuT5nQGFQIhALSWfivYewVpnFwzADmmlEhKbXVxDfzAYvcdFo+9CO2c"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/browserkeymap-2.0.1.tgz_1467880163026_0.6854385263286531"}},"2.0.2":{"name":"browserkeymap","version":"2.0.2","description":"Map browser events to key names, and key names to values","main":"index.js","repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"keywords":["browser","key","event","keymap"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"homepage":"https://github.com/marijnh/browserkeymap#readme","gitHead":"97371904b74f0c1bda0f4450e07f7263627a7fa5","_id":"browserkeymap@2.0.2","scripts":{},"_shasum":"7e6ddaddf5a94429721ffe0e99114cdc50dfa51b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"dist":{"shasum":"7e6ddaddf5a94429721ffe0e99114cdc50dfa51b","tarball":"https://registry.npmjs.org/browserkeymap/-/browserkeymap-2.0.2.tgz","integrity":"sha512-/R8MqcLz3mtkXiyWkeWPMHCXM0CZOL8/15SNrXeNchcmOXwfe/etQJJHOpOHSrw64UaEqAg3I3ylt9pENihTKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyBMe3J615Q/KcgSHWP6CU9Y9eKdC43tR3MPbwv2k+awIgZ08UsgEviRKb9XBwUCBtP70HnDLtI4zrAofFSS/sraQ="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/browserkeymap-2.0.2.tgz_1481659877769_0.5036749311257154"}}},"readme":"# Browser Keymap\n\nA small library for doing sane key binding in the browser. It defines two\nthings:\n\n### A string notation for key events\n\n`browserkeymap` keys are represented by strings like `\"Shift-Space\"`,\n`\"Ctrl-Alt-Delete\"`, or `\"'x'\"`. The rules are:\n\n * `keypress` events are represented as the character that was typed\n   between single quotes. They do not support modifiers because\n   browsers do not attach modifier information to `keypress` events.\n\n * `keydown` events are represented as zero or more modifiers\n   (`Shift-`, `Cmd-`, `Alt-`, `Ctrl-`) followed by a key name.\n\n * A key name is a capital letter for a letter key, a digit for a\n   number key, `F` plus a number for a function key, the symbol typed\n   by the key when shift isn't held down (one of ``[\\]`'*,-./;=``), or\n   one of the names `Alt`, `Backspace`, `CapsLock`, `Ctrl`, `Delete`,\n   `Down`, `End`, `Enter`, `Esc`, `Home`, `Insert`, `Left`, `Mod`,\n   `PageDown`, `PageUp`, `Pause`, `PrintScrn`, `Right`, `Shift`,\n   `Space`, `Tab`, or `Up`.\n\nYou can get a key name from an event by calling\n`Keymap.keyName(event)`.\n\nYou can normalize a key name string (fixing the order of the\nmodifiers, and replacing alternative modifier names with their\nstandard name) by calling `Keymap.normalizeKeyName(string)`. This\nfunction maps the modifier `Mod-` to `Cmd-` on Mac platforms and to\n`Ctrl-` on non-Mac platforms. It also accepts `a-` for `Alt-`, `c-` or\n`Control-` for `Ctrl-`, `m-` or `Meta-` for `Cmd-`, and `s-` for\n`Shift-`.\n\nYou can use `Keymap.isModifierKey(string)` to find out whether the\ngiven key name refers to a modifier key.\n\n### An object type for keymaps\n\nThe `Keymap` constructor itself, which is the thing the library\nexports, can be used to build keymaps.\n\n    var myMap = new Keymap({\n      \"Ctrl-Q\": handleQuit,\n      \"Shift-Space\": autocomplete\n    })\n\nA keymap associates keys with values. You can call its `lookup` method\nto look up a key:\n\n    myMap.lookup(\"Ctrl-Q\") // → handleQuit\n    myMap.lookup(\"Alt-F4\") // → undefined\n\nYou can create a new map from an existing map with its `update`\nmethod:\n\n    var newMap = myMap.update({\n      \"Alt-F4\": handleQuit,\n      \"Ctrl-Q\": null\n    })\n\nThat will create a new map, starting with the bindings in `myMap`,\nadding a binding for `Alt-F4`, and removing the binding for `Ctrl-Q`.\n\nMulti-stroke keys are supported by providing space-separated names to\na keymap. When a prefix of a multi-stroke key is looked up, the\n`lookup` method will return `Keymap.unfinished`. The handler should\nthen buffer the key name, and on the next key event (possibly with a\ntimeout to clear buffered keys), try again by prefixing the new key\nevent's name with the buffered key(s).\n\n## License\n\nThis module is released under an MIT license.\n","maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"time":{"modified":"2022-06-13T05:11:18.643Z","created":"2016-01-06T14:51:05.693Z","0.1.0":"2016-01-06T14:51:05.693Z","1.0.0":"2016-05-26T13:41:40.207Z","1.0.1":"2016-06-05T14:08:19.352Z","2.0.0":"2016-06-21T07:19:45.212Z","2.0.1":"2016-07-07T08:29:25.192Z","2.0.2":"2016-12-13T20:11:19.741Z"},"homepage":"https://github.com/marijnh/browserkeymap#readme","keywords":["browser","key","event","keymap"],"repository":{"type":"git","url":"git+https://github.com/marijnh/browserkeymap.git"},"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"bugs":{"url":"https://github.com/marijnh/browserkeymap/issues"},"license":"MIT","readmeFilename":"README.md"}