By Ben Nadel on 

Consuming global keyboard shortcuts in an Angular application (or any application for that matter) is a non-trivial task. Global key-event handlers often run into collision errors, unbind errors, and timing errors that can make debugging a nightmare. And while Angular provides easy semantics for binding to the Document and Window key-events, there’s no native construct for effectively managing these events across complex and deeply-nested applications. As such, I wanted to revisit this challenge and look at a potential solution that uses explicit event-handler priorities and terminal configurations.

Source: Handling Global Keyboard Shortcuts Using Priority And Terminality In Angular 5.0.5

Posted in: Articles.
Last Modified: December 4, 2017

Leave a Reply