{"repo":"brtnshrdr/angular2-hotkeys","free":true,"listed":false,"github":"https://github.com/brtnshrdr/angular2-hotkeys","clone":"git clone https://github.com/brtnshrdr/angular2-hotkeys.git","description":"Keyboard shortcuts for Angular 2 apps","language":"TypeScript","stars":202,"topics":["angular2","angular","hotkeys","typescript"],"license":"MIT","category":"ui-components","readme_excerpt":"angular2-hotkeys Angular 16 and Ivy Compatible. Older versions might work but isn't officially tested. Versions compatibility v2.4.0 - Angular 11 (most likely lower Angular versions) v13. . - Angular 13 (most likely Angular 12) v15. . - Angular 15 v16. . - Angular 16 Installation To install this library, run: Examples First, import the HotkeyModule into your root AppModule Then, add HotkeyModule.forRoot() to your AppModule's import array If you have any sub/feature modules that also use hotkeys, import the HotkeyModule (but NOT .forRoot()) Then inject the service into your constructor and add a new hotkey It also handles passing an array of hotkey combinations for a single callback Your callback must return either a boolean or an \"ExtendedKeyboardEvent\". For more information on what hotkeys can be used, check out This library is a work in progress and any issues/pull-requests are welcomed! Based off of the angular-hotkeys library Cheat Sheet To enable the cheat sheet, simply add to your top level component template. The HotkeysService will automatically register the ? key combo to toggle the cheat sheet. NB! Only hotkeys that have a description will apear on the cheat sheet. The Hotkey constructor takes a description as an optional fourth parameter as a string or optionally as a function for dynamic descriptions. The third parameter, given as undefined , can be used to allow the Hotkey to fire in INPUT, SELECT or TEXTAREA tags. Cheat Sheet Customization 1. You can now pass in","default_branch":null,"files":null,"tree":[],"storefront":"/r/brtnshrdr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/brtnshrdr/angular2-hotkeys/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}