{"_id":"@artemv/angular2-hotkeys","_rev":"4-07f0df0c0894a805e17cb266f1a17b7f","name":"@artemv/angular2-hotkeys","dist-tags":{"latest":"2.2.4"},"versions":{"2.2.1":{"name":"@artemv/angular2-hotkeys","version":"2.2.1","scripts":{"build":"ng build angular2-hotkeys","build:release":"ng build angular2-hotkeys --prod","build:watch":"ng build angular2-hotkeys --watch","ng":"ng","lint":"ng lint","release":"npm run build:release && npm publish dist/","release:beta":"npm run build:release && npm publish dist/ --tag beta","start":"ng serve","test":"ng test"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/brtnshrdr/angular2-hotkeys.git"},"author":{"name":"Nick Richardson","email":"nick.richardson@mediapixeldesign.com"},"keywords":["angular","angular2","hotkeys","keyboard","shortcut"],"peerDependencies":{"@angular/core":"^5.2.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","rxjs":"^5.5.0 || ^6.0.0"},"dependencies":{"mousetrap":"^1.6.0","@types/mousetrap":"^1.6.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.900.3","@angular-devkit/build-ng-packagr":"~0.900.3","@angular/animations":"~9.0.2","@angular/cli":"~9.0.3","@angular/common":"~9.0.2","@angular/compiler":"~9.0.2","@angular/compiler-cli":"~9.0.2","@angular/core":"~9.0.2","@angular/forms":"~9.0.2","@angular/language-service":"~9.0.2","@angular/platform-browser":"~9.0.2","@angular/platform-browser-dynamic":"~9.0.2","@angular/router":"~9.0.2","@types/node":"^12.11.1","@types/jasmine":"~3.5.0","@types/jasminewd2":"~2.0.3","codelyzer":"^5.1.2","jasmine-core":"~3.5.0","jasmine-spec-reporter":"~4.2.1","karma":"~4.3.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~2.1.0","karma-jasmine":"~2.0.1","karma-jasmine-html-reporter":"^1.4.2","ng-packagr":"^9.0.0","protractor":"~5.4.3","rxjs":"~6.5.4","ts-node":"~8.3.0","tslib":"^1.10.0","tslint":"~5.18.0","typescript":"~3.7.5","zone.js":"~0.10.2"},"gitHead":"3a05d99eed74a657a3a46151220ec1402859e61b","description":"Angular 9 and Ivy Compatible. Older versions might work but isn't officially tested. ## Installation","homepage":"https://github.com/brtnshrdr/angular2-hotkeys#readme","_id":"@artemv/angular2-hotkeys@2.2.1","_nodeVersion":"11.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-uw9oq7RifSyiZpnmQTwMXJeM+CMrppsP8VZGzfU2cZk+UvDRk+9pv3Df0zRpSO8RmC8qPdYNiguh0FMmHjoUrA==","shasum":"aac26cfe9ad8b3a99e01f348d2787fd674ca0c46","tarball":"https://registry.npmjs.org/@artemv/angular2-hotkeys/-/angular2-hotkeys-2.2.1.tgz","fileCount":23,"unpackedSize":32559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggZ8sCRA9TVsSAnZWagAA7UcP/1DhusJBKE7fk8tyggNw\nVgrcCILCsqHMGA2o6xezFfMBNDFNJlsqpwThwKEomhxMXE4RWb3wxTYnHVfN\nR4AaI56m3P2XbF4wgN6jrX4jKSYAf/G3hMVTz6t5YcEIlw4wAFM4jut+MWOm\nM9x3JCtEmo6zfnBSQOLKiI39aqvzjfeakB1DdFIMxLtJO20bGDYobT2oglKD\nfOeQCNlBHm6CndkwejBvDgWE0u8A+aWN9lYVDMGsmzVMFh9fX0uEkwmaXnsE\n6gumMxyNllirjcHoxypHM21qut9N4lRPK1+DE24lJOFc7RMne3AP5w2aNbfQ\nwmUDuEgqPSUYSXrVBLEHs8xzG+B1VcMKNlaP4Gt/Wa8c6GtTLJtl0sq6GrKG\n7wUpcfvkVxERJFwuL2I4cyFORzJbeGudXb+yo1iRwOvGn5XKA/rpctIc98FN\n9KtL//9eS7YrNoerXoFvBE/0UV+sddosRL/D04+svYVQbrCWbAmIr8CNMfqN\nLKT6J/oePblESQLIUPhcSAaEr/FyMulngwYQr/IK6c1unq/NuIR1DEpHisNs\nFauLSOuMFRCoht6D82sHWan8JlubSzXYWbpFZU0JLo+Vz7OJonlgo+QE/aea\n94ekjGp3SHfSbqY2ZmANXYLT5rwdzEluQJJ6yLPbj91BYRn9oHw5qUToG0Zd\nrDEL\r\n=F4Wi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB5ZQEBVx3/28Ag+wgS5K7zvVUSy8jIs0h85v0BwL/j3AiAIs3zw6UkOD04L6wIJSQTbzIPimC8s8SaQGLmFgX3Oiw=="}]},"_npmUser":{"name":"artemv","email":"artem.job@gmail.com"},"directories":{},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular2-hotkeys_2.2.1_1619107627808_0.8708248428243022"},"_hasShrinkwrap":false},"2.2.2":{"name":"@artemv/angular2-hotkeys","version":"2.2.2","scripts":{"build":"ng build angular2-hotkeys","build:release":"ng build angular2-hotkeys --prod","build:watch":"ng build angular2-hotkeys --watch","ng":"ng","lint":"ng lint","release":"npm run build:release && npm publish dist/","release:beta":"npm run build:release && npm publish dist/ --tag beta","start":"ng serve","test":"ng test"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/brtnshrdr/angular2-hotkeys.git"},"author":{"name":"Nick Richardson","email":"nick.richardson@mediapixeldesign.com"},"keywords":["angular","angular2","hotkeys","keyboard","shortcut"],"peerDependencies":{"@angular/core":"^5.2.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","rxjs":"^5.5.0 || ^6.0.0"},"dependencies":{"mousetrap":"^1.6.0","@types/mousetrap":"^1.6.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.900.3","@angular-devkit/build-ng-packagr":"~0.900.3","@angular/animations":"~9.0.2","@angular/cli":"~9.0.3","@angular/common":"~9.0.2","@angular/compiler":"~9.0.2","@angular/compiler-cli":"~9.0.2","@angular/core":"~9.0.2","@angular/forms":"~9.0.2","@angular/language-service":"~9.0.2","@angular/platform-browser":"~9.0.2","@angular/platform-browser-dynamic":"~9.0.2","@angular/router":"~9.0.2","@types/node":"^12.11.1","@types/jasmine":"~3.5.0","@types/jasminewd2":"~2.0.3","codelyzer":"^5.1.2","jasmine-core":"~3.5.0","jasmine-spec-reporter":"~4.2.1","karma":"~4.3.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~2.1.0","karma-jasmine":"~2.0.1","karma-jasmine-html-reporter":"^1.4.2","ng-packagr":"^9.0.0","protractor":"~5.4.3","rxjs":"~6.5.4","ts-node":"~8.3.0","tslib":"^1.10.0","tslint":"~5.18.0","typescript":"~3.7.5","zone.js":"~0.10.2"},"gitHead":"3a05d99eed74a657a3a46151220ec1402859e61b","description":"Angular 9 and Ivy Compatible. Older versions might work but isn't officially tested. ## Installation","homepage":"https://github.com/brtnshrdr/angular2-hotkeys#readme","_id":"@artemv/angular2-hotkeys@2.2.2","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-q06lUhQ8JhZ/lMAu0sZ0tFRxLGQ+OC7onr1w2W9STz51wjTcbb4VZsGDP3IAKA48IPYiuTH0/8EdsZYRCiqMkA==","shasum":"fc562e2b450cce42eea1828cb505dd2c7a400348","tarball":"https://registry.npmjs.org/@artemv/angular2-hotkeys/-/angular2-hotkeys-2.2.2.tgz","fileCount":23,"unpackedSize":32603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggbNFCRA9TVsSAnZWagAAlmkP/39LQvstQ449J74+BYBv\nJmBvrJczSygvdBeRcU3DPG5MCBpZZojsytTQB/pY/X7WQ3H/XvNNL9ucWuef\nSieQp3EQsQ3MXf7/IGX/wP/88KAsVGE+DfY9gYc+KRwxVhOUeXySUnCX8TGl\nfyJKbgHduIZVRBblf6kMwxXSkfQHP1xTxdfGZjewS11k6n/3p6XdimR6rXhu\nrEas0mwbOYJg7WJEBo2Eds242vsM97LOJ5jIhg0G+ydzuPZm7Ot32p4mkshv\nMOYPDe6CZQeAcEfGWPGfdMnAakKqKoqKS7+Ix+r/DvPy8wo4tsn7/m7qMNTZ\n83VzCZ9aO4sVyHix3kMuCprCqscxWT6+13kuDgLVBNe2UxnwzzhVWCE4jrJb\n1nhxuGwrZOp5S2Gf+oJxyY+99YRPreRojI3wI7vccNbs21D/SlwH/jo6iKDc\nTuqGfqBpoEltwpPdPv/rLNICmN59EJP+IWvrUHCyR18jvA+WQmV72yObD++a\nAygSUdy4Bec2LkCG37axnf0Jahcr+byx2VMSEL44Hx3jUUk3D9Dvvq4c9sbN\nO59e8/7YsvM5spOJkpWTwmhxCT2/j7ZrRwZmEij8HC6eLaaf1t62CIzJ+jwP\nKtZkP28nfDurT+yUsgVzL/qa4M51L+xuRvZg0GBb3shZqTHaV6dQ08AdkZWl\n1Wrg\r\n=HCAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKDNGR52cOSBxj8KsXEzi25gawE6pqqyKYQ/wpMZ/5dQIgVxg0sH4W4E53dySIzMcnZ1+j79WQ06E5Xby0KYe/f6U="}]},"_npmUser":{"name":"artemv","email":"artem.job@gmail.com"},"directories":{},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular2-hotkeys_2.2.2_1619112773005_0.6103105945294964"},"_hasShrinkwrap":false},"2.2.3":{"name":"@artemv/angular2-hotkeys","version":"2.2.3","scripts":{"build":"ng build angular2-hotkeys","build:release":"ng build angular2-hotkeys --prod","build:watch":"ng build angular2-hotkeys --watch","ng":"ng","lint":"ng lint","release":"npm run build:release && npm publish dist/","release:beta":"npm run build:release && npm publish dist/ --tag beta","start":"ng serve","test":"ng test"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/brtnshrdr/angular2-hotkeys.git"},"author":{"name":"Nick Richardson","email":"nick.richardson@mediapixeldesign.com"},"keywords":["angular","angular2","hotkeys","keyboard","shortcut"],"peerDependencies":{"@angular/core":"^5.2.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","rxjs":"^5.5.0 || ^6.0.0"},"dependencies":{"mousetrap":"^1.6.0","@types/mousetrap":"^1.6.0"},"devDependencies":{"@angular-devkit/build-angular":"~0.900.3","@angular-devkit/build-ng-packagr":"~0.900.3","@angular/animations":"~9.0.2","@angular/cli":"~9.0.3","@angular/common":"~9.0.2","@angular/compiler":"~9.0.2","@angular/compiler-cli":"~9.0.2","@angular/core":"~9.0.2","@angular/forms":"~9.0.2","@angular/language-service":"~9.0.2","@angular/platform-browser":"~9.0.2","@angular/platform-browser-dynamic":"~9.0.2","@angular/router":"~9.0.2","@types/node":"^12.11.1","@types/jasmine":"~3.5.0","@types/jasminewd2":"~2.0.3","codelyzer":"^5.1.2","jasmine-core":"~3.5.0","jasmine-spec-reporter":"~4.2.1","karma":"~4.3.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~2.1.0","karma-jasmine":"~2.0.1","karma-jasmine-html-reporter":"^1.4.2","ng-packagr":"^9.0.0","protractor":"~5.4.3","rxjs":"~6.5.4","ts-node":"~8.3.0","tslib":"^1.10.0","tslint":"~5.18.0","typescript":"~3.7.5","zone.js":"~0.10.2"},"gitHead":"3a05d99eed74a657a3a46151220ec1402859e61b","description":"Angular 9 and Ivy Compatible. Older versions might work but isn't officially tested. ## Installation","homepage":"https://github.com/brtnshrdr/angular2-hotkeys#readme","_id":"@artemv/angular2-hotkeys@2.2.3","_nodeVersion":"11.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-gLtPVyM6rnWL0S417ilqFd7qdVDgvd5lfNPQUkYTQlCtJefpkSZRltghrCJepgGrhT2Eh+3xLDJP+59MZha50w==","shasum":"04e6c68c1a6bf4dd5eec5d985c5d73689534b702","tarball":"https://registry.npmjs.org/@artemv/angular2-hotkeys/-/angular2-hotkeys-2.2.3.tgz","fileCount":23,"unpackedSize":32619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggbVnCRA9TVsSAnZWagAAKp8P+wQWc/AKzoVBSLa/BLzZ\nSfNVXBcSkJ4pRWnCP8xbWQGQDhYZuKAY+fASiTKj0reiC8Up8g3h6mDdCv2H\nbXvqj1ZL9zO6rmwIwnLEiOF26Z3QDApJhMTX2mjOP5/D/WAHoXmQXsPeod47\nyOU/WfAxk1pmbncw5+I1yfWrhLm4dLeTNYkx5On+zkBBwXmw5T4OSQSFE4FW\nvOG9VtvDFDIsr1M+M1I5qL1gS6iTC3IGGDSq2m30zAXU/jfekyAydcnFhMmS\n6D4EY42GeQWPGyuUn3+mBpWCXa7+5naqjk3gpSWs9aby2S3MJcds8lXYiq5z\nvIPDLHpTU1rhg7mU+O4soWTMV4MvCZ3r+97wK4KweNV6zHcCIjOpTIUqoN/L\ns7boXCdtFk4VwjDZkaW/hi0gPywrsZ/AlJ4rHDPFJwebC7qGuwr+4W0iV0U5\nsGE5bhfYuKYK2NzUT2H107oA8/f7nRv7Jrm9iAyFpIFR19EZIN1mNYIauTaw\n87tNhcrqFrVzb313UVhCZneff5+o8DY6pUmQWZU0hIl8F0FUOsS6OBhCIlkW\nBoa6T0C8p6sbou2nAAVMfhP0NtqkTJtss8ggJoTCS+mJfP1edYBLiU+9dEVw\n2ptJbm4yRIYRFOYDHnsMUpWkK593YglgY1MxnnMwfybhSfbnExKivUmgHQzv\nzsVo\r\n=OJsy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfm11AW6Z9zeo68XfhMWBiUVhdQAN7zzeoxYUwwPSSwAiEAwaLtU1A/i/OevRncClA1IWM4W5QeDIFr//Ruk6ROKEo="}]},"_npmUser":{"name":"artemv","email":"artem.job@gmail.com"},"directories":{},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular2-hotkeys_2.2.3_1619113319394_0.20500381298290948"},"_hasShrinkwrap":false},"2.2.4":{"name":"@artemv/angular2-hotkeys","version":"2.2.4","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/brtnshrdr/angular2-hotkeys.git"},"author":{"name":"Nick Richardson","email":"nick.richardson@mediapixeldesign.com"},"keywords":["angular","angular2","hotkeys","keyboard","shortcut"],"peerDependencies":{"@angular/core":"^5.2.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","rxjs":"^5.5.0 || ^6.0.0"},"dependencies":{"mousetrap":"^1.6.0","@types/mousetrap":"^1.6.0","tslib":"^1.10.0"},"main":"bundles/artemv-angular2-hotkeys.umd.js","module":"fesm5/artemv-angular2-hotkeys.js","es2015":"fesm2015/artemv-angular2-hotkeys.js","esm5":"esm5/artemv-angular2-hotkeys.js","esm2015":"esm2015/artemv-angular2-hotkeys.js","fesm5":"fesm5/artemv-angular2-hotkeys.js","fesm2015":"fesm2015/artemv-angular2-hotkeys.js","typings":"artemv-angular2-hotkeys.d.ts","metadata":"artemv-angular2-hotkeys.metadata.json","sideEffects":false,"description":"Angular 9 and Ivy Compatible. Older versions might work but isn't officially tested. ## Installation","homepage":"https://github.com/brtnshrdr/angular2-hotkeys#readme","_id":"@artemv/angular2-hotkeys@2.2.4","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-LqG+mMhyt6EHYoieEYDFSURBAiF/uBT/M2PTJmZC4vcBfmRgiSQEccslMd6SKzh3ydljiTCBcX82T/AOTAT4aA==","shasum":"35241d4d398215c705d879a6649b7648b29ae4d3","tarball":"https://registry.npmjs.org/@artemv/angular2-hotkeys/-/angular2-hotkeys-2.2.4.tgz","fileCount":36,"unpackedSize":327801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggbhhCRA9TVsSAnZWagAAmgUP/0c+vZmzDpoxbTjAyZCk\n2baGwAyfhDIy1ZcNYqvWNlS8++Mrmms3liRTyhQWinrnMOeEY6HIvJIBhT9N\nmGxb56ZmanReI0ytpqr9Srlqqe7BaTNdDLeIYNGMCuSK0C+nezkbblOguqTP\nbx1h0NgBS+1t1vYRWh1vpNPEaROpAAofIwjXdrxXMkCkOZZmvTaPIGC+WzeO\n2It8+iiI4eRO2MphZIwwkqnYGMbpWabJWM+S12myB11iU3W+g1fTtQUuztpQ\nXi9KJFT/o4JVD+DSn0CjRiih1MaoWP9IorIn6X9Caw/UdmgIJCRA5mp2uSJA\nKUU5TmFI8doU0ZQXmU/AE746hAVg3VDbhgjgH1JYoedejObwLlV16Awtxe1j\nF8tkLaokCDh2Hy+ghPlMIEpB4OlBBrAEBDHZ9wgvYD6oVGeKFVaIZoLj/+SX\nzVNLRER5z+jOwd9Vi+eCYyzjHOvaM0KAajJBRoctAyRIVufQwommNefYNn3+\nI0moFzWLLO0R7lD6BmUayngY7U/cdvTLoiYPjfdjv+PBq8Yd0rap8+4qLEEx\nrt9rj9PHXzTEcXZEbJMrIPKiCIiIoZ4P0qEZR000S2ofkOk3RG5cYpHQUtlL\niTw4m5wAYnP6PGLTgtU2QKWhy/yPV5gT1EZbThAuxbFu67o/wCpVF7ev23GV\n8Xw5\r\n=vXBo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwvfRV4YEjPWQTQu6jt1sqG6gOxjgrBpnLK0y4wWW+tAiEA3d6X6UM6xZsZTDW3OwgSlQZz5VZskrd34J55bY56ibE="}]},"_npmUser":{"name":"artemv","email":"artem.job@gmail.com"},"directories":{},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular2-hotkeys_2.2.4_1619114080780_0.9473543186064024"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-22T16:07:07.745Z","2.2.1":"2021-04-22T16:07:08.002Z","modified":"2022-04-04T15:36:45.740Z","2.2.2":"2021-04-22T17:32:53.154Z","2.2.3":"2021-04-22T17:41:59.572Z","2.2.4":"2021-04-22T17:54:41.009Z"},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"description":"Angular 9 and Ivy Compatible. Older versions might work but isn't officially tested. ## Installation","homepage":"https://github.com/brtnshrdr/angular2-hotkeys#readme","keywords":["angular","angular2","hotkeys","keyboard","shortcut"],"repository":{"type":"git","url":"git+ssh://git@github.com/brtnshrdr/angular2-hotkeys.git"},"author":{"name":"Nick Richardson","email":"nick.richardson@mediapixeldesign.com"},"license":"MIT","readme":"# angular2-hotkeys\nAngular 9 and Ivy Compatible. Older versions might work but isn't officially tested.\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install angular2-hotkeys --save\n```\n\n## Examples\nFirst, import the HotkeyModule into your root AppModule\n\n```typescript\nimport {HotkeyModule} from 'angular2-hotkeys';\n```\n\nThen, add HotkeyModule.forRoot() to your AppModule's import array\n\n```typescript\n@NgModule({\n    imports : [CommonModule, HotkeyModule.forRoot(), ...],\n})\nexport class AppModule {}\n```\n\nIf you have any sub/feature modules that also use hotkeys, import the HotkeyModule (but NOT .forRoot())\n```typescript\n@NgModule({\n    imports : [CommonModule, HotkeyModule, ...],\n})\nexport class SharedModule {}\n```\n\nThen inject the service into your constructor and add a new hotkey\n\n```typescript\nconstructor(private _hotkeysService: HotkeysService) {\n    this._hotkeysService.add(new Hotkey('meta+shift+g', (event: KeyboardEvent): boolean => {\n        console.log('Typed hotkey');\n        return false; // Prevent bubbling\n    }));\n}\n```\nIt also handles passing an array of hotkey combinations for a single callback\n```typescript\nthis._hotkeysService.add(new Hotkey(['meta+shift+g', 'alt+shift+s'], (event: KeyboardEvent, combo: string): ExtendedKeyboardEvent => {\n    console.log('Combo: ' + combo); // 'Combo: meta+shift+g' or 'Combo: alt+shift+s'\n    let e: ExtendedKeyboardEvent = event;\n    e.returnValue = false; // Prevent bubbling\n    return e;\n}));\n```\n\nYour callback must return either a boolean or an \"ExtendedKeyboardEvent\".\n\nFor more information on what hotkeys can be used, check out <https://craig.is/killing/mice>\n\nThis library is a work in progress and any issues/pull-requests are welcomed!\nBased off of the [angular-hotkeys library](https://github.com/chieffancypants/angular-hotkeys)\n\n## Cheat Sheet\n\nTo enable the cheat sheet, simply add `<hotkeys-cheatsheet></hotkeys-cheatsheet>` to your top level component template.\nThe `HotkeysService` will automatically register the `?` key combo to toggle the cheat sheet.\n\n**NB!** Only hotkeys that have a description will apear on the cheat sheet. The Hotkey constructor takes a description as\nan optional fourth parameter as a string or optionally as a function for dynamic descriptions.\n\n```typescript\nthis._hotkeysService.add(new Hotkey('meta+shift+g', (event: KeyboardEvent): boolean => {\n    console.log('Secret message');\n    return false;\n}, undefined, 'Send a secret message to the console.'));\n```\n\nThe third parameter, given as `undefined`, can be used to allow the Hotkey to fire in INPUT, SELECT or TEXTAREA tags.\n\n### Cheat Sheet Customization\n\n1. You can now pass in custom options in `HotkeyModule.forRoot(options: IHotkeyOptions)`.\n\n```typescript\nexport interface IHotkeyOptions {\n  /**\n   * Disable the cheat sheet popover dialog? Default: false\n   */\n  disableCheatSheet?: boolean;\n  /**\n   * Key combination to trigger the cheat sheet. Default: '?'\n   */\n  cheatSheetHotkey?: string;\n  /**\n   * Use also ESC for closing the cheat sheet. Default: false\n   */\n  cheatSheetCloseEsc?: boolean;\n  /**\n   * Description for the ESC key for closing the cheat sheet (if enabed). Default: 'Hide this help menu'\n   */\n  cheatSheetCloseEscDescription?: string;\n  /**\n   * Description for the cheat sheet hot key in the cheat sheet. Default: 'Show / hide this help menu'\n   */\n  cheatSheetDescription?: string;\n};\n```\n\n2. You can also customize the title of the cheat sheet component.\n\n```html\n<hotkeys-cheatsheet title=\"Hotkeys Rock!\"></hotkeys-cheatsheet>\n<!-- Default: 'Keyboard Shortcuts:' -->\n```\n\n## TODO\n1. Create unit and E2E tests\n\n## Development\n\nTo generate all `*\n}.js`, `*.js.map` and `*.d.ts` files:\n\n```bash\n$ npm run tsc\n```\n\n## License\n\nMIT © [Nick Richardson](nick.richardson@mediapixeldesign.com)\n","readmeFilename":"README.md"}