What would be proper way of creating global keyboard shortcuts (a.k.a. hotkeys) in Angular2 application?
Let\'s say good starting point would be to get working: \"?
You can use a library I created called angular2-hotkeys
It lets you create hotkeys like this:
constructor(private _hotkeysService: HotkeysService) { this._hotkeysService.add(new Hotkey('meta+shift+g', (event: KeyboardEvent) => { console.log('Typed hotkey'); return false; // Prevent bubbling })); }