angular2-hotkeys icon indicating copy to clipboard operation
angular2-hotkeys copied to clipboard

feat(): add possibility to listen to change events

Open billyjov opened this issue 6 years ago • 2 comments

It will be cool if we can watch for combo change. e.g on keydown or keyup event

billyjov avatar Nov 20 '19 16:11 billyjov

I'm not quite sure I understand what you are asking for here. Could you try explaining it in a bit more detail?

wittlock avatar Dec 02 '19 18:12 wittlock

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.

billyjov avatar Dec 02 '19 23:12 billyjov