{"_id":"@egoistdeveloper/ng-keyboard-shortcuts","_rev":"6-c0a84a50dce6a3197430944439a7bb62","name":"@egoistdeveloper/ng-keyboard-shortcuts","dist-tags":{"latest":"13.1.23"},"versions":{"13.1.18":{"name":"@egoistdeveloper/ng-keyboard-shortcuts","version":"13.1.18","description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"license":"MIT","author":{"name":"EgoistDeveloper"},"homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","repository":{"type":"git","url":"github.com/EgoistDeveloper/ng-keyboard-shortcuts"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"peerDependencies":{"@angular/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","@angular/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","rxjs":"^6.3.0 || ^7.0.0","zone.js":"^0.9.1 || ^0.10.2 || ^0.11.4","core-js":"^2.5.4"},"dependencies":{"tslib":"^2.0.0 || ^3.0.0"},"module":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","esm2020":"esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2015":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","typings":"egoistdeveloper-ng-keyboard-shortcuts.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./egoistdeveloper-ng-keyboard-shortcuts.d.ts","esm2020":"./esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2015":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","node":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","default":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs"}},"sideEffects":false,"_id":"@egoistdeveloper/ng-keyboard-shortcuts@13.1.18","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-B5h3pHrRuMzzYbyzGTKt7zb97qafb/THBH+Z7kCAA9fW2FfM6ua8lTElktl6gVYBymK4DAAJN2cXCWlwo5LP9A==","shasum":"048c9924a677acd985e16fc872ece7ddb0da548c","tarball":"https://registry.npmjs.org/@egoistdeveloper/ng-keyboard-shortcuts/-/ng-keyboard-shortcuts-13.1.18.tgz","fileCount":38,"unpackedSize":576405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/Da5CRA9TVsSAnZWagAAG1MP/1U6cAnDSB4M5dmfbXzL\nwZwMdSwH92ci2q2rIqigUh6jw0LpT3X1HIbR3KivYenhDK5mdF9BL96tcSL1\nrl5d7xhj/ac5oEhInvKpIa11lfQwQZyqNTRm214ik0bLUxOS5sFxyNwM7z+c\nZvlZ1k/t7fsxq9zeeKTMsLGsxLXQXJ8UusPP/hoyfmq84NjJzun0as005ZaI\nhVPiI29gERkkeA66zmSGZ6ZK712Ok1x9HAZcw+A0/mEpupNDbINJzg3jBQ0i\nsN60dmXmSOTTHBQ195XuCPNEhclMfUpY++K7dYz9WcItoD88tw0Ih6l4l+HP\n/sf1U62KHWs2D1Cfh2Czw4w58xoPigu4pbcS0ccs06TKJ41ZYOm13ud3wNV3\n1WVtjHi0cNBDr8TTxyscf+HZ9aw71o1+c7wJuGkPCM/bAGEqILrwWji1Bqic\nFvTdYdsY70XFOTJTmmscuygyFAuJ6yyVbJMXG8Ke5WGCTQikzNoM18EHq20w\nmbSvduLLOfz9EqmAwx2cjVzKCukx+st+fbuWQnrgccHFe+B3zmImoYHQeU2a\nPaiYWJeIMf/tBKBflEhY5uQM0WiV63vDALCVbGxeeqhgxdCGhYN5X+1gClML\ndMxtEtyUp/S357aXKQ4DZ8VTM7H+ezXh6wd2VxrX3kU/xzt4i3sg4kX1Y97i\n9zWE\r\n=6iSp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/L6aglnM+Gurg4NLOuOMJHQVm4C2jOS10J1r0RSfAOwIgExewU6sLgAH8UQJ4AtADT221LURJRW3sqIbggIY40Z8="}]},"_npmUser":{"name":"egoistdeveloper","email":"e939637@outlook.com"},"directories":{},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-keyboard-shortcuts_13.1.18_1643919032930_0.9418137808395874"},"_hasShrinkwrap":false},"13.1.19":{"name":"@egoistdeveloper/ng-keyboard-shortcuts","version":"13.1.19","description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"license":"MIT","author":{"name":"EgoistDeveloper"},"homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","repository":{"type":"git","url":"github.com/EgoistDeveloper/ng-keyboard-shortcuts"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"peerDependencies":{"@angular/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","@angular/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","rxjs":"^6.3.0 || ^7.0.0","zone.js":"^0.9.1 || ^0.10.2 || ^0.11.4","core-js":"^2.5.4"},"dependencies":{"tslib":"^2.0.0 || ^3.0.0"},"module":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","esm2020":"esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2015":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","typings":"egoistdeveloper-ng-keyboard-shortcuts.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./egoistdeveloper-ng-keyboard-shortcuts.d.ts","esm2020":"./esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2015":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","node":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","default":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs"}},"sideEffects":false,"_id":"@egoistdeveloper/ng-keyboard-shortcuts@13.1.19","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-4Z751lA3G/gh6TX+HPAQbEN5Emqr+wGkio0Mlk8yfFAsQOTsI55DKU6VrG7oSc6trIK+Sfzc05yCBSRoqj0FAw==","shasum":"997f575999a50187b94b27cc7f2e7a43c6a366cc","tarball":"https://registry.npmjs.org/@egoistdeveloper/ng-keyboard-shortcuts/-/ng-keyboard-shortcuts-13.1.19.tgz","fileCount":38,"unpackedSize":576405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/DgOCRA9TVsSAnZWagAA6/wP/0sUlAlx1obcaTnj+Kq9\nh400p3iTH2VyiBmbHZEjFpeLebtFwd+6YcOZjtRYAUXJJM9i5ZPJ5TXAl8Ex\nH94tsiF5wAvcImJLPcUh9Kf2bU4yKtQPYT15kSqBePVw1IbvF3nC+92omnna\nN0LO0p4h9MwywqhRHy56l5dPAOukk07zOEiS31wZKmEMzN88Q+j8OYQWLHb+\nH57JQ9N4mYJAH2kh22FKXOe87JQ/3cyXcJADF7tPW6KW4MKYyUZfHn1JBiWA\nGD4wIKLKIGIxxbCTwWdc35NDXJabLXEwz9VF/NhSHX1/T5+iEskmweeGaBBh\n7q7Mk3OzAHzdJyslNeQeL81GOt9tZOPb/ZfHqcxLYy/RMR4a+are4Ukj9PgJ\nBwiJYb9+Zy56UaI/gbvexYxzDvd7z0DLtaCpzN7MdOEVya+biPYfy7QCF4s7\n+/InNQ8DaWAPk9jQWUMsTWhl8U13rki0vslqiRgw/i3uVlU+EXHwybFQAZt+\nsPq8+PVU1zsYXMgFudhiLh4GbQLvHeNelVz3Ji4WmThxsUMbwT7mbktW5aMm\nwyREoSQc+7HWuH5IePC/BCE8q6z/wIu6OKFWmIYzxQbPlwMiwMJZ6qpUEiGX\nZQk3eAwqIUogTMWyqj5yOcQiR4BLPzRxdDviC3EQohYHEjkE/iH2BReiQdq1\nAQSk\r\n=DlV+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/+hU6VnjHd4xQPhux94KFMLIFdjnJvfT1qClRa7oBNAiBwZ2eINGOYdaSr4Aqnrb8g1yr+TGce7Q2iWhnKRhSdhQ=="}]},"_npmUser":{"name":"egoistdeveloper","email":"e939637@outlook.com"},"directories":{},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-keyboard-shortcuts_13.1.19_1643919374169_0.6863840812411226"},"_hasShrinkwrap":false},"13.1.20":{"name":"@egoistdeveloper/ng-keyboard-shortcuts","version":"13.1.20","description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"license":"MIT","author":{"name":"EgoistDeveloper"},"homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","repository":{"type":"git","url":"github.com/EgoistDeveloper/ng-keyboard-shortcuts"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"peerDependencies":{"@angular/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","@angular/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","rxjs":"^6.3.0 || ^7.0.0","zone.js":"^0.9.1 || ^0.10.2 || ^0.11.4","core-js":"^2.5.4"},"dependencies":{"tslib":"^2.0.0 || ^3.0.0"},"module":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","esm2020":"esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2015":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","typings":"egoistdeveloper-ng-keyboard-shortcuts.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./egoistdeveloper-ng-keyboard-shortcuts.d.ts","esm2020":"./esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2015":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","node":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","default":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs"}},"sideEffects":false,"_id":"@egoistdeveloper/ng-keyboard-shortcuts@13.1.20","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/pMSttOtKdx1iBud/vL33HcqnD4lSb2dv3Z5+r8blIpVvQor2u+8KpDS3D0keVkjL4ADIPTStkhXF3RUHYdoMA==","shasum":"e820c835a1de9664593c356dd0b1a02cd6cef2ba","tarball":"https://registry.npmjs.org/@egoistdeveloper/ng-keyboard-shortcuts/-/ng-keyboard-shortcuts-13.1.20.tgz","fileCount":38,"unpackedSize":576447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/DicCRA9TVsSAnZWagAAjE4QAJpD+mv6SiZSjqwF0Hby\nkQFmG00d3sXngzGmDiRAUaUntAv0LZPdzJ06QZtvwiu8rZCRyF8I0bKAh3El\nqpNRH9F97ltMKOsO4h3Yw+WYhJmOyOWeVvSRV+OqPRLj/ZqNnW0NfZSldUGB\nHzyaO2GPbaiqR5HuxxOg6Ngg5oqxgykUcl0csfIr/Ix04uBzW5/F/E3zrX7q\n4f6KIQJK/KNrOMwAKeytIDQpVkXa/0cXfJORWYPR42FQxR79wl8GohgI+jZz\nZNt3cJpPaMoQMV3Q7It7TI96URFfArktsS06XfIgSQTUDn8wZyp1qSmsuM/S\nmhRCyGvn22/KVSaDfh17xNqEEDjY3u7Xaj7FqZw9c1ZWBSQ/iXTUpmZMtXu7\n8bYIKyGxURLVzWBsdHOek37L3xcE2cRwG1eAaqCWq8J+jrOCf9yla5MlXy5M\nuUIjrGlH3i11JGtskuGisDXdf2xFqTzh149Bg/vTSUuTr2kzTrN/TWSga3IQ\n+2Na/frb5neAF7j1x/cdRxZ2pTIO+gffO/yOfJh/wOiugfKtdyeZYbYMltOJ\nfJ3k9BownB7TQt7Ni2sr1ck3IQihgy8bctRgCcEFBzaC9ZvTFK83X8q5vawE\nruWrQ3002IJu16sqzbNzccpY0c/nJfz07+WHvlrZ+0nWWKRZVTN+wmaPAowv\nPADg\r\n=+Veg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcXOfbRtuRRmQqwiY+s5THRpwtX63+aN1mmAFoKjSMfAiEA2AJJUu0rdlP8PlRC7VrInR07JCAYbi7Rr6kO5v6qrhg="}]},"_npmUser":{"name":"egoistdeveloper","email":"e939637@outlook.com"},"directories":{},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-keyboard-shortcuts_13.1.20_1643919516033_0.36711175440797583"},"_hasShrinkwrap":false},"13.1.21":{"name":"@egoistdeveloper/ng-keyboard-shortcuts","version":"13.1.21","description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"license":"MIT","author":{"name":"EgoistDeveloper"},"homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","repository":{"type":"git","url":"github.com/EgoistDeveloper/ng-keyboard-shortcuts"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"peerDependencies":{"@angular/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","@angular/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","rxjs":"^6.3.0 || ^7.0.0","zone.js":"^0.9.1 || ^0.10.2 || ^0.11.4","core-js":"^2.5.4"},"dependencies":{"tslib":"^2.0.0 || ^3.0.0"},"module":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","esm2020":"esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2015":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","typings":"egoistdeveloper-ng-keyboard-shortcuts.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./egoistdeveloper-ng-keyboard-shortcuts.d.ts","esm2020":"./esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2015":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","node":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","default":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs"}},"sideEffects":false,"_id":"@egoistdeveloper/ng-keyboard-shortcuts@13.1.21","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-CiQtvvojXfYyheBFQs60VuqH13dqc7ELFbGTXCQ3IDWeMM1gXIN71R4RjuTGXEnpM4ECJj6sxMzYDrWrZWB1Lw==","shasum":"017418430d8b63e038891eab86d02e228a6000bd","tarball":"https://registry.npmjs.org/@egoistdeveloper/ng-keyboard-shortcuts/-/ng-keyboard-shortcuts-13.1.21.tgz","fileCount":38,"unpackedSize":569677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/Xn/CRA9TVsSAnZWagAAE7oQAJ6hfaDLn6x5PPXdSkc1\n7yGTjCqqQMvGMwUz9FsfgGn1rjFrBm8aLMTnXiNWQP1qzuRLIWiql4/HqZGm\nkEW9F9PDJffMJrucotYJxNepng1Z7AsPh+gf+APEMCTWDN/bNgGHcDjP0nLB\nP9GmhJxrGpniIKReyUOYjU1VrLJ6NQ6FDDcr8bqw9CjdVfmhde9SWN9dD9L2\n/56jP4fYcwheQlUtiNLgi2DG2/98SWmKAwEbalOMRE5awke+LEjdwsKkhPUe\nIIC0pthBKtF6Yl77uZAMmOZv+Z2BYpex8OgIhcmnb9cNvqUmP/t0vpR9N8bO\njnta+taxXpRMBzETSHzhWNy5aas07sf5PE1F4E7DU2rWQjYjeau1tWLIFLx/\nhJRnoI3MqJpy9W3fZF2yjyMTDsjGu+Qno3OQFTciNtu1R3kCDT4khpi84FLe\nsNOs0OTBWrZBTpa/DU6H2v06HHwmUwjiqf17b85SfRZ2fo26FcXXD6r48hwH\nLJZJFDq4yFaoW2OpiXvkOx21fsRcgzEK0a8wfQT3lQt6fsNgWVmM54coEmzA\nA4qqq8bLeoFba9jkNbCnj44i/H51629yebG5U7uIKNELfA98v/ragbrDTXZ+\nrW24xxlSSNvNa9tYkpUbloOOy3ySKW0A+wgWFWNtyPHIuSuE4yO7a1SmCwnr\nIYeO\r\n=q4PY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0VC8gRVGQ1sz3Qza5TT8vqpJ2jeEVqg6/j5WGPHTNkQIgHksLsCsVcK5L8MGGJ0OjRVHY9DfCXUFxk9gsj6Rc3cI="}]},"_npmUser":{"name":"egoistdeveloper","email":"e939637@outlook.com"},"directories":{},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-keyboard-shortcuts_13.1.21_1644001791381_0.0867646214177642"},"_hasShrinkwrap":false},"13.1.22":{"name":"@egoistdeveloper/ng-keyboard-shortcuts","version":"13.1.22","description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"license":"MIT","author":{"name":"EgoistDeveloper"},"homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","repository":{"type":"git","url":"github.com/EgoistDeveloper/ng-keyboard-shortcuts"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"peerDependencies":{"@angular/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","@angular/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","rxjs":"^6.3.0 || ^7.0.0","zone.js":"^0.9.1 || ^0.10.2 || ^0.11.4","core-js":"^2.5.4"},"dependencies":{"tslib":"^2.0.0 || ^3.0.0"},"module":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","esm2020":"esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2015":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","typings":"egoistdeveloper-ng-keyboard-shortcuts.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./egoistdeveloper-ng-keyboard-shortcuts.d.ts","esm2020":"./esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2015":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","node":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","default":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs"}},"sideEffects":false,"_id":"@egoistdeveloper/ng-keyboard-shortcuts@13.1.22","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-InaJrbpprKzsPhz1FhOGBAGHHNLx78D96RkfXlSJV1i8NVQml5+ZP8jNCOR0O5nkloarR3yv1bvTLiO9Nyut5Q==","shasum":"04103b641f0feb209db9d4914b41a417702bf94c","tarball":"https://registry.npmjs.org/@egoistdeveloper/ng-keyboard-shortcuts/-/ng-keyboard-shortcuts-13.1.22.tgz","fileCount":38,"unpackedSize":571126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAEtxCRA9TVsSAnZWagAAz/QP+QETXiV53hu8nIWVMTxO\nK/OVwwAhiFcJ9RdRFzQIh/Gj/4SVrUndsxvi3GblkCCV6nOmR+2Vl2Pjf17C\n7qqld3uYRGOUZuVJuky7ocGKn0UfLrC04vx51z7qw7Ge9JtC1hmLpjsjggHr\nsbyT5+oqG2Tg1c/cBMx89yWhSBMQMBqz9Z2+V0cjKo7wHZ8ULLY44sEna3ru\nFYJhycJUaBZ++Q80iJWuW8dzGOZUMF4mmgFvkWm3eH6biClptes/FxkqFr4/\nj5DvEqMIW4Mgq0UyLwcVd4w4KBXMGWM2En8/+Nqq6ExmhGLKrrkw8gI5ZtSz\n1IGvhH0XkjJh3Du5b+JujFwFHAS4xB5x3ckjZXUIJSuZ7+ecTpGyl4tTweN4\naOPOD4Wel1AGCLs4vA6fLqU4ycGlxaJrk1GznPmxw2w3TEsyAAZYnlsIfOZz\nGo7SI/sQeRLzmKY3qsjSn82S8aQGaTouGW2EJsX5wstos/jvr/HZW88c+xMP\nqCNyr+7iHp1EqUGq2u2byx0znWDLMkqdS9GIIyYd4dzQQsYkToXnp5ZlCVqL\nEYtYnZ2dH/5vJccCVKGTmigPKKsGR/Pb4IBs/t7j64NA8z1FgfwxEVXjVuD8\ndawfuQpNQKlRXnEKDYkkbBgC7msaIQ1ZvNMqsPPQy3YA9kXaSXkIMhyWZcTK\n9rfX\r\n=Ach2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuVTXxuJ0sar1AOWB3TXMlC7t9W2wzdyVuwfo05sHiiAiA21v7IQMgkLZCsGIibIbSSkVIXVYMYvEoI9m3CogqgUg=="}]},"_npmUser":{"name":"egoistdeveloper","email":"e939637@outlook.com"},"directories":{},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-keyboard-shortcuts_13.1.22_1644186480810_0.9237602858156726"},"_hasShrinkwrap":false},"13.1.23":{"name":"@egoistdeveloper/ng-keyboard-shortcuts","version":"13.1.23","description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"license":"MIT","author":{"name":"EgoistDeveloper"},"contributors":[{"name":"Omri Katz","email":"omrikatz12@gmail.com","url":"https://github.com/omridevk"},{"name":"EgoistDeveloper","email":"epsilonelittr@gmail.com","url":"https://github.com/EgoistDeveloper"}],"homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","repository":{"type":"git","url":"git+https://github.com/EgoistDeveloper/ng-keyboard-shortcuts.git"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"peerDependencies":{"@angular/core":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","@angular/common":"^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0","rxjs":"^6.3.0 || ^7.0.0","zone.js":"^0.9.1 || ^0.10.2 || ^0.11.4","core-js":"^2.5.4"},"dependencies":{"tslib":"^2.0.0 || ^3.0.0"},"module":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","esm2020":"esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2020":"fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","fesm2015":"fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","typings":"egoistdeveloper-ng-keyboard-shortcuts.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./egoistdeveloper-ng-keyboard-shortcuts.d.ts","esm2020":"./esm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2020":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs","es2015":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","node":"./fesm2015/egoistdeveloper-ng-keyboard-shortcuts.mjs","default":"./fesm2020/egoistdeveloper-ng-keyboard-shortcuts.mjs"}},"sideEffects":false,"_id":"@egoistdeveloper/ng-keyboard-shortcuts@13.1.23","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-kgvCUIM/YXZH3TXpZ7dTfCG7UUOMS1UYJLLyktGWHMEXNUCJUiFVu1yvwGE+GwbxbhE9Atg+sUd2HoiFZN6REg==","shasum":"340075b2c3537e92c43af61547047da3e53b44e0","tarball":"https://registry.npmjs.org/@egoistdeveloper/ng-keyboard-shortcuts/-/ng-keyboard-shortcuts-13.1.23.tgz","fileCount":38,"unpackedSize":571690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQG83ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNmg/+IOYvaIki4EfZSMGbO26Ip7C+N9AzOKJ+9BU2hLGYmx5CFRpB\r\nMhfqEKFz8YkbzGZ160aQrKi9iJcwYldrCaM5H6Tn8fpO0ukm0fHw4rsIRfG+\r\nqtst1XNMaJ99/mLtb3xfn/ovDaihaU4fbbXy8HZGoY921fE268o1xeVZsneF\r\nu2rSiBhwfwJ1EKMo5Ojb72cdl65OgRaPHaHOlFcUoOMrkvaqLZ/40vjqqFNQ\r\nKPfEFT7+gr32drGP8OMs7LWh/aZxqAkxPBiGmfg80pajDEtpHVIbXzCQLebF\r\nPkGVz92FdmNE5zlFxS8vdT/SMNKcmUcHO6ZYQODQnIBAhl9sPtImlJ1HhYxm\r\n4qJDBqU+e2wfuqcfDvEHjogW921MUVM7Lxag74QjCOgasbRW25ToLFXYlfm/\r\nLhZzbcaHiTsGedTiHBFjPygaLaBq8ptIXFpZAC3+tbj6nIcYiqzHy/vjrXea\r\nccyrsoipJZzebdg5cXSLkoZN6z92RBZLzZ/O78jYplWCmdtE7PhFxUU1awsS\r\nPHX4c6ci6NBzk4T7XOZwrr5gfXGQz0Dbl/OPqwfFALALGc/2zTACCDZ8/6UD\r\nBB499LTPH2fcBSGysQWP7Lrg9ysRHFPKg+mLUFqboFb/BVSeBCNFEvvgSAwB\r\nF8ZP0z9Rx7ccSqDKdkjJZ4KEIIXwmnYGkKs=\r\n=KqsO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRrM6Rtndxd+I78p13eRmHloOclKTDTGF2AigbSetp3AIga1pf4cJbeVctScrCF/ExeKj5C86/X6mmJPHjp8Pgs9c="}]},"_npmUser":{"name":"egoistdeveloper","email":"e939637@outlook.com"},"directories":{},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-keyboard-shortcuts_13.1.23_1648389943799_0.017085398993969214"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-03T20:10:32.856Z","13.1.18":"2022-02-03T20:10:33.108Z","modified":"2022-04-05T06:57:22.654Z","13.1.19":"2022-02-03T20:16:14.326Z","13.1.20":"2022-02-03T20:18:36.197Z","13.1.21":"2022-02-04T19:09:51.653Z","13.1.22":"2022-02-06T22:28:01.045Z","13.1.23":"2022-03-27T14:05:43.955Z"},"maintainers":[{"name":"egoistdeveloper","email":"e939637@outlook.com"}],"description":"Dead Simple Keyboard Shortcuts Management for Angular 2+","homepage":"https://EgoistDeveloper.github.io/ng-keyboard-shortcuts","keywords":["angular","keyboard","shortcuts","ng","keyboard-shortcuts","rxjs"],"repository":{"type":"git","url":"git+https://github.com/EgoistDeveloper/ng-keyboard-shortcuts.git"},"author":{"name":"EgoistDeveloper"},"bugs":{"url":"https://github.com/EgoistDeveloper/ng-keyboard-shortcuts/issues"},"license":"MIT","readme":"# ng-keyboard-shortcuts\r\n\r\n[![NPM](https://badge.fury.io/js/@egoistdeveloper%2Fng-keyboard-shortcuts.svg)](https://badge.fury.io/js/@egoistdeveloper%2Fng-keyboard-shortcuts)\r\n[![downlaods](https://img.shields.io/npm/dw/@egoistdeveloper%2Fng-keyboard-shortcuts)](https://badge.fury.io/js/@egoistdeveloper%2Fng-keyboard-shortcuts)\r\n[![bundlephobia](https://img.shields.io/bundlephobia/minzip/@egoistdeveloper%2Fng-keyboard-shortcuts)](https://bundlephobia.com/result?p=@egoistdeveloper%2Fng-keyboard-shortcuts)\r\n[![license](https://img.shields.io/npm/l/ng-keyboard-shortcuts)](https://img.shields.io/npm/l/ng-keyboard-shortcuts)\r\n\r\nAn Angular module that provides a declarative API using components/directive to manage Keyboard shortcuts in scalable way.\r\n\r\n**[Live Demo](https://ng-keyboard-shortcuts-example.stackblitz.io)** & **[Edit on Stackblitz](https://stackblitz.com/edit/ng-keyboard-shortcuts-example?file=src%2Fapp%2Fapp.component.html)**\r\n\r\n\r\n## Table of contents\r\n\r\n- [ng-keyboard-shortcuts](#ng-keyboard-shortcuts)\r\n  - [Table of contents](#table-of-contents)\r\n  - [Developer Notes](#developer-notes)\r\n  - [Migrating from `ng-keyboard-shortcuts`.](#migrating-from-ng-keyboard-shortcuts)\r\n  - [Install](#install)\r\n- [Start](#start)\r\n- [Usage](#usage)\r\n  - [Combinations](#combinations)\r\n    - [Examples](#examples)\r\n  - [Sequences](#sequences)\r\n    - [Important Notes](#important-notes)\r\n    - [Examples](#examples-1)\r\n  - [Components](#components)\r\n    - [ng-keyboard-shortcuts](#ng-keyboard-shortcuts-1)\r\n    - [Inputs](#inputs)\r\n    - [Methods:](#methods)\r\n    - [ng-keyboard-shortcuts-help](#ng-keyboard-shortcuts-help)\r\n    - [Inputs](#inputs-1)\r\n    - [Methods](#methods-1)\r\n      - [Methods:](#methods-2)\r\n  - [Directive](#directive)\r\n    - [ngKeyboardShortcuts](#ngkeyboardshortcuts)\r\n    - [Important](#important)\r\n    - [Inputs](#inputs-2)\r\n    - [Example](#example)\r\n- [Service](#service)\r\n  - [KeyboardShortcutsHelpService](#keyboardshortcutshelpservice)\r\n  - [KeyboardShortcutsSelectService](#keyboardshortcutsselectservice)\r\n- [API](#api)\r\n  - [Types](#types)\r\n    - [AllowIn](#allowin)\r\n    - [Shortcut](#shortcut)\r\n    - [ShortcutInput](#shortcutinput)\r\n    - [ShortcutEventOutput](#shortcuteventoutput)\r\n  - [Duplicated items in help menu](#duplicated-items-in-help-menu)\r\n- [Building & Publishing](#building--publishing)\r\n  - [Publishing on NPM](#publishing-on-npm)\r\n  - [Loading as dependency on localhost](#loading-as-dependency-on-localhost)\r\n- [License](#license)\r\n\r\n## Developer Notes\r\n\r\n- This project forked from **[omridevk/ng-keyboard-shortcuts](https://github.com/omridevk/ng-keyboard-shortcuts)** to support new angular versions and fix known bugs.\r\n- Recommending to update to version **7.0.0 and above** and use the new component API which has better memory management than previous version.\r\n- The minimum `rxjs` version is `^6.3.0` anymore with `v13.x`.\r\n- This documentation is for Angular version **v7-13**. For older versions (**2.0.0/6.0.0**) please [click here](https://github.com/omridevk/ng-keyboard-shortcuts/tree/2.0.0)\r\n\r\n## Migrating from `ng-keyboard-shortcuts`.\r\n\r\n1. Remove `ng-keyboard-shortcuts` from your project\r\n2. Install `@egoistdeveloper/ng-keyboard-shortcuts`\r\n3. Replace importings `ng-keyboard-shortcuts` with `@egoistdeveloper/ng-keyboard-shortcuts`.\r\n\r\n## Install\r\n\r\n| Angular | Package |\r\n| ------- | ------- |\r\n| v10/11/12/13 |`npm i @egoistdeveloper/ng-keyboard-shortcuts@^13.0.0 --save` |\r\n| v8/9 | `npm i ng-keyboard-shortcuts@^9.0.0 --save` |\r\n| v7 | `npm i ng-keyboard-shortcuts@^7.0.0 --save` |\r\n\r\n\r\n# Start\r\n\r\nAdd `KeyboardShortcutsModule` module to your `AppModule` or child module.\r\n\r\n```typescript  \r\nimport { KeyboardShortcutsModule } from \"@egoistdeveloper/ng-keyboard-shortcuts\";\r\n\r\n@NgModule({\r\n    declarations: [\r\n    ],\r\n    imports: [\r\n        BrowserModule,\r\n        KeyboardShortcutsModule.forRoot()\r\n    ],\r\n    bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {\r\n    // ...\r\n}\r\n```\r\n\r\n# Usage\r\n\r\n## Combinations\r\n\r\nKey combinations are used with meta keys like `control`, `shift`, `command`, etc... and are defined using plus(+) sign as a separator. There can be multiple combinations for the same command, so either of the key combination will trigger the callback.\r\n\r\nSince combinations uses the plus sign as a seperator, if you want to bind to the actual + charachater,\r\nyou will need to use **\"plus\"** instead.\r\n\r\n### Examples\r\n\r\n```typescript\r\n[\r\n  {\r\n    key: [\"cmd + a\"],\r\n    command: (output: ShortcutEventOutput) => console.log(\"command + a\", output),\r\n  },\r\n  {\r\n    key: \"ctrl + a\",\r\n    preventDefault: true,\r\n    command: (output: ShortcutEventOutput) => console.log(\"control + a\", output),\r\n  },\r\n  {\r\n    key: \"ctrl + plus\",\r\n    preventDefault: true,\r\n    command: (output: ShortcutEventOutput) => console.log(\"control + plus key\", output),\r\n  }\r\n]\r\n```\r\n\r\n## Sequences\r\n\r\nSequences can be used to support gmail like actions where you click \"g\" then \"a\", or \"g\" then \"o\" to perform certain actions.\r\n\r\n### Important Notes\r\n\r\nThe library can get very confused if you have a single key handler that uses the same key that a sequence starts with. This is because it can't tell if you are starting the sequence or if you are pressing that key on its own.\r\n\r\nTo counter this, there is a **500ms** delay(**only** when single key is used in the beginning of another sequence, so it won't affect performance). This gives the library time to wait for a more complete sequence, otherwise the single sequence will be triggered.\r\n\r\nFor example: binding both \"? a\" and \"?\", then clicking \"?\" will trigger the \"?\" callback, but only after 500ms delay. However, in all other cases there's no delay in execution of the callback (unless debounceTime is provided)\r\n\r\n### Examples\r\n\r\nThis library supports gmail style sequences:\r\n\r\n```typescript\r\n[\r\n  {\r\n    key: [\"g a\"],\r\n    command: (output: ShortcutEventOutput) => console.log(\"? a\", output),\r\n  }\r\n]\r\n```\r\n\r\nkonami code:\r\n```typescript\r\n[\r\n  {\r\n    key: [\"up up down down left right left right b a enter\"],\r\n    label: \"Sequences\",\r\n    description: \"Konami code!\",\r\n    command: (output: ShortcutEventOutput) => console.log(\"Konami code!!!\", output),\r\n  }\r\n]\r\n```\r\n\r\n**⚠️ Warning:** \r\n- The help menu only shows labels and descriptions of sequences. In the above example, the first one is will not be listed in the help menu but still works.\r\n- Sequences can be used inside components or directives and are declared **without** the plus(+) sign, for example: `key: [\"a b c\"]` will require clicking, a, then b, then c.\r\n\r\n## Components\r\n\r\n### ng-keyboard-shortcuts\r\n\r\nComponent that can be used across the app to bind to various shortcuts\r\n\r\n### Inputs\r\n\r\n| Name     |     Type      |      Default     |  Description  |\r\n|----------|:-------------:|-----------------:|:-------------:|\r\n| shortcuts |  `ShortcutInput` / `ShortcutInput[]` | [] | List of shortcut inputs types see [types](#ShortcutInput) |\r\n| disabled |    `boolean`  |   `false`   | disable the shortcuts for the component |\r\n\r\n### Methods:\r\n\r\n| Name  | Input | Return  | Description |\r\n|----------|:------|:------:|:-------------:|\r\n| select | `string` - key to listen to events (example: `'ctrl + x'`) | `Observable<ShortcutEventOutput>` |Listen to specific key events (**will only work for registered keys**) |\r\n\r\n`app.component.html`\r\n\r\n```html\r\n<h1>ng-keyboard-shortcuts Demo</h1>\r\n\r\n<hr />\r\n\r\n<p>>> Press F2 for the help menu (F1 might be reserved by the browser)</p>\r\n\r\n<p>>> {{ shortcutLog ? shortcutLog : 'No Action' }}</p>\r\n\r\n<hr />\r\n\r\n<hr />\r\n\r\n<h1>Test Inputs</h1>\r\n\r\n<input #input placeholder=\"Ctrl + X, Ctrl + C, Ctrl + V\" />\r\n\r\n<!-- Shortcuts -->\r\n<ng-keyboard-shortcuts [shortcuts]=\"keyboardShortcuts\"></ng-keyboard-shortcuts>\r\n\r\n<!-- Shortcut Help Menu -->\r\n<ng-keyboard-shortcuts-help\r\n  [key]=\"'f2'\"\r\n  [closeKey]=\"'escape'\"\r\n  [title]=\"'Help Me!'\"\r\n></ng-keyboard-shortcuts-help>\r\n\r\n```\r\n\r\n`app.component.ts`\r\n```typescript\r\nimport {\r\n  AfterViewInit,\r\n  Component,\r\n  ElementRef,\r\n  OnInit,\r\n  ViewChild,\r\n} from '@angular/core';\r\nimport {\r\n  ShortcutInput,\r\n  ShortcutEventOutput,\r\n  KeyboardShortcutsComponent,\r\n  AllowIn,\r\n} from '@egoistdeveloper/ng-keyboard-shortcuts';\r\n\r\n@Component({\r\n  selector: 'my-app',\r\n  templateUrl: './app.component.html',\r\n  styleUrls: ['./app.component.css'],\r\n})\r\nexport class AppComponent {\r\n  @ViewChild('input') input: ElementRef;\r\n  @ViewChild(KeyboardShortcutsComponent) keyboard!: KeyboardShortcutsComponent;\r\n\r\n  public keyboardShortcuts: ShortcutInput[] = [];\r\n  public shortcutLog: string;\r\n\r\n  ngAfterViewInit(): void {\r\n    this.installKeyBindings();\r\n  }\r\n\r\n  private installKeyBindings(): void {\r\n    this.keyboardShortcuts.push(\r\n      {\r\n        key: 'ctrl + x',\r\n        preventDefault: true,\r\n        allowIn: [AllowIn.Textarea, AllowIn.Input],\r\n        label: 'Input',\r\n        description: 'Cut',\r\n        command: (e) => {\r\n          this.shortcutLog = `Action: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n      },\r\n      {\r\n        key: 'ctrl + c',\r\n        preventDefault: true,\r\n        allowIn: [AllowIn.Textarea, AllowIn.Input],\r\n        label: 'Input',\r\n        description: 'Copy',\r\n        command: (e) => {\r\n          this.shortcutLog = `Action: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n      },\r\n      {\r\n        key: 'ctrl + v',\r\n        preventDefault: true,\r\n        allowIn: [AllowIn.Textarea, AllowIn.Input],\r\n        label: 'Input',\r\n        description: 'Paste',\r\n        command: (e) => {\r\n          this.shortcutLog = `Action: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n      },\r\n      {\r\n        key: 'ctrl + f',\r\n        preventDefault: true,\r\n        allowIn: [AllowIn.Textarea, AllowIn.Input],\r\n        label: 'Input',\r\n        description: 'Find',\r\n        command: (e) => {\r\n          this.shortcutLog = `Action: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n      },\r\n      {\r\n        key: 'f7',\r\n        preventDefault: true,\r\n        label: 'F Button',\r\n        description: 'Anything',\r\n        command: (e) => {\r\n          this.shortcutLog = `Action: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n      },\r\n      {\r\n        key: ['? a'],\r\n        label: 'Sequences',\r\n        description: 'Sequence ? and a',\r\n        command: (output: ShortcutEventOutput) => (e) => {\r\n          this.shortcutLog = `Action: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n        preventDefault: true,\r\n      },\r\n      {\r\n        key: ['up up down down left right left right b a enter'],\r\n        label: 'Sequences',\r\n        description: 'Konami code!',\r\n        command: (output: ShortcutEventOutput) => (e) => {\r\n          this.shortcutLog = `Konami Code: ${e.key}`;\r\n\r\n          console.log(this.shortcutLog);\r\n        },\r\n      }\r\n    );\r\n\r\n    this.keyboard.select('ctrl + f').subscribe((e) => console.log(e));\r\n  }\r\n}\r\n\r\n```\r\n\r\n### ng-keyboard-shortcuts-help\r\n\r\n1. **Make sure to install `@angular/animations` ( `npm install --save @angular/animations` or `yarn add @angular/animations`**  \r\n2. **Add BrowserAnimationsModule to your app.module imports**\r\n  \r\nCan be used to show a help screen (will be attached to the body and be shown as a modal). Should be placed in the root of your app, preferably in `app.component.html`\r\n\r\n### Inputs\r\n\r\n|   Name   |      Type     |     default      |  description  |\r\n|----------|:-------------:|-----------------:|:-------------:|\r\n| key |  `string` | none | The key to show/hide the help modal\r\n| keyDescription |  `string` | none | Description to show in the menu shortcut list for the toggle shortcut\r\n| keyLabel |  `string` | none | Label that can be used to group shortcuts together in the help menu\r\n| closeKey |  `string` | none | Close key to be used to close the modal\r\n| closeKeyDescription |  `string` | none | Description to show in the menu shortcut list for closing the modal shortcut\r\n| closeKeyLabel |  `string` | none | Label that can be used to group shortcuts together in the help menu\r\n| title |  `string` | \"Keyboard shortcuts\" | The title of the help screen\r\n| emptyMessage |  `string` | \"No shortcuts available\" | What message to show when no commands are registered when help modal is opened.\r\n| disableScrolling |  `boolean` | true | Whether to disable body scrolling when modal help screen is opened.\r\n\r\n### Methods\r\n\r\n|   Name   | Input | Return |  Description  |\r\n|----------|:------|:------:|:-------------:|\r\n| hide | void| `KeyboardShortcutsHelpComponent` | Programmatically hide the modal |\r\n| reveal | void| `KeyboardShortcutsHelpComponent` | Programmatically hide the modal |\r\n| visible | void| `boolean` | Check whether the modal is visible or not. |\r\n| toggle | void| `KeyboardShortcutsHelpComponent` | Programmatically toggle the modal visibility |\r\n\r\n#### Methods:\r\n|   Name   | Input | Return |  Description  |\r\n|----------|:------|:------:|:-------------:|\r\n| select | `string` - key to listen to events (example: `'cmd + e'`) | `Observable<ShortcutEventOutput>` | Listen to specific key events (**will only work for registered keys**) |\r\n\r\n`app.component.ts`\r\n\r\n```typescript  \r\nimport { Component } from \"@angular/core\";\r\n\r\n@Component({\r\n  selector: \"app-root\",\r\n  template: \"./app.component.html\",\r\n  styleUrls: [\"./app.component.css\"]\r\n})  \r\nexport class AppComponent {\r\n  title = \"Hello\";\r\n}\r\n```\r\n\r\n`app.component.html`\r\n\r\n```html\r\n<div style=\"text-align:center\">\r\n   <h1>\r\n      Welcome to {{ title }}!\r\n   </h1>\r\n\r\n   <ng-keyboard-shortcuts-help [key]=\"'f1'\" [closeKey]=\"'escape'\" [title]=\"'Help'\"></ng-keyboard-shortcuts-help>\r\n</div>\r\n```\r\n\r\n## Directive\r\n\r\n### ngKeyboardShortcuts\r\n\r\nDirective can only be used for focusable elements, such as textarea, select, input, etc...\r\n\r\n### Important\r\n\r\nThe shortcut then will only be active while the element is in __focus__.\r\n\r\n\r\n### Inputs\r\n\r\n|   Name   |      Type     |      Default     |  Description  |\r\n|----------|:-------------:|-----------------:|:-------------:|\r\n| ngKeyboardShortcuts |  ```Shortcut``` / ```Shortcut``` | [] | List of shortcuts see [types](#shortcut) |\r\n| disabled |    `boolean`  |   `false`   | disable the shortcuts for the directive | \r\n| disableScrolling | `boolean` | `true` | disable body scrolling while modal is open |\r\n\r\n### Example \r\n\r\n```typescript  \r\nimport { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from \"@angular/core\";  \r\nimport { ShortcutInput, ShortcutEventOutput, KeyboardShortcutsComponent } from \"@egoistdeveloper/ng-keyboard-shortcuts\";\r\n\r\n@Component({\r\n    selector: 'demo-component',\r\n    template: \"<input [ngKeyboardShortcuts]=\"shortcuts\" />\"\r\n})  \r\nexport class DemoComponent implements AfterViewInit {\r\n    shortcuts: ShortcutInput[] = [];\r\n    @ViewChild('input') input: ElementRef;\r\n\r\n    ngAfterViewInit(): void {\r\n        this.shortcuts.push({\r\n            key: \"cmd + e\",\r\n            label: \"test\",\r\n            description: \"hello world\",\r\n            command: () => console.log('directive cmd + e'),\r\n            preventDefault: true\r\n        });\r\n\r\n        this.keyboard.select(\"cmd + f\").subscribe(e => console.log(e));\r\n    }\r\n\r\n    @ViewChild(KeyboardShortcutsComponent) private keyboard: KeyboardShortcutsComponent;\r\n}\r\n```\r\n\r\n# Service\r\n\r\n## KeyboardShortcutsHelpService\r\n  \r\nSingleton service that can be used to render a custom help screen. (used to build the [Built in help component](#ng-keyboard-shortcuts-help))  \r\nProvides access to all registered shortcuts in the app using Observable that updates on shortcuts changes.  \r\nSince shortcuts can be added or removed during the lifecycle of the app, an observable data structure needed to be used.\r\n\r\n| Properties |   Type    |  Description  |\r\n|------------|:---------:|:-------------:|\r\n| shortcuts$ | ```Observable<{ key: string, label: string, description: string }[]>```| Array of registered shortcuts across the whole app |\r\n \r\n## KeyboardShortcutsSelectService\r\n\r\nA singleton service that can be used globally to listen to any registered shortcut:\r\n| Name  | Input | Return  | Description |\r\n|----------|:------|:------:|:-------------:|\r\n| select | `string` - key to listen to events (example: `'cmd + e'`) | `Observable<ShortcutEventOutput>` |Listen to specific key events (**will only work for registered keys**) |\r\n \r\n# API\r\n\r\n## Types\r\n\r\n### AllowIn\r\n\r\n```typescript  \r\nexport enum AllowIn {\r\n    Textarea = 'TEXTAREA',\r\n    Input = 'INPUT',\r\n    Select = \"SELECT\"\r\n}\r\n```\r\n\r\n### Shortcut\r\n\r\nUsed for Directive input\r\n\r\n```typescript  \r\nexport interface Shortcut {\r\n  key: string | string[];\r\n\r\n  /**\r\n   * callback to be called when shortcut is pressed.\r\n   * @param event - the event out\r\n   */\r\n  command(event: ShortcutEventOutput): any;\r\n\r\n  /**\r\n   * Description for the command can be used for rendering help menu.\r\n   */\r\n  description?: string;\r\n\r\n  /**\r\n   * How much time to throttle in ms.\r\n   */\r\n  throttleTime?: number;\r\n\r\n  /**\r\n   * Label, can be used for grouping commands.\r\n   */\r\n  label?: string;\r\n\r\n  /**\r\n   * Prevent browser default, default: false\r\n   */\r\n  preventDefault?: boolean;\r\n}\r\n```\r\n\r\n### ShortcutInput  \r\nUsed for the component as input.\r\n\r\n```typescript  \r\nexport interface ShortcutInput extends Shortcut {\r\n  /**\r\n   * textarea, select and input are ignored by default, this is used to override\r\n   * this behavior.\r\n   * allow in node names, accepts: [\"TEXTAREA\", \"SELECT\", \"INPUT]\r\n   */\r\n  allowIn?: AllowIn[];\r\n  /**\r\n   * Only trigger the command when the target is in focus.\r\n   */\r\n  target?: HTMLElement;\r\n}\r\n```\r\n\r\n### ShortcutEventOutput\r\n\r\n```typescript  \r\ntype = ShortcutEventOutput {\r\n  event: KeyboardEvent;\r\n  key: string | string[];\r\n}\r\n```\r\n\r\n## Duplicated items in help menu\r\n\r\nSometimes shortcuts can be loaded twice and these shortcuts show twice in the help menu. This is probably about your logic or app lifecycles.\r\n\r\nTo prevent that use `time()` method with `rxjs` or use `setTimeout`.\r\n\r\n```typescript\r\ntimer().subscribe(() => {\r\n  // bind your shortcuts\r\n});\r\n\r\n// or\r\n\r\nsetTimeout(() => {\r\n  // bind your shortcuts\r\n}, 100);\r\n```\r\n\r\n# Building & Publishing\r\n\r\n`ng build` or `npm run build` or `npm run build:prod`\r\n\r\n## Publishing on NPM\r\n\r\nIf you want to publish as own package change package name etc in `projects/ng-keyboard-shortcuts/package.json`\r\n\r\n1. `npm run build:prod`\r\n2. `npm publish dist/ng-keyboard-shortcuts` (*you need login before publish*)\r\n\r\n## Loading as dependency on localhost\r\n\r\n1. `npm run package`\r\n2. Copy `x-ng-keyboard-shortcuts-{version}.tgz` file in dist folder\r\n3. In your project folder open terminal and run `npm i full/path/to/x-ng-keyboard-shortcuts-{version}.tgz`\r\n4. Rebuild your project and see magic\r\n\r\n# License\r\n  \r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\r\n","readmeFilename":"README.md","contributors":[{"name":"Omri Katz","email":"omrikatz12@gmail.com","url":"https://github.com/omridevk"},{"name":"EgoistDeveloper","email":"epsilonelittr@gmail.com","url":"https://github.com/EgoistDeveloper"}]}