angular2-hotkeys
angular2-hotkeys copied to clipboard
feat(): add possibility to listen to change events
It will be cool if we can watch for combo change. e.g on keydown or keyup event
I'm not quite sure I understand what you are asking for here. Could you try explaining it in a bit more detail?
Consider for example a user press on the alt key that enable some elements on the pages.. We have to do something like this to listen to the keyup event as soon as the user leave the key.
@HostListener('window:keyup', ['$event'])
aMethod(event: KeyboardEvent): void {
// Do Something
}
A suggestion is to integrate this to the library as an built in feature.