Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(): add possibility to listen to change events #119

Open
billyjov opened this issue Nov 20, 2019 · 2 comments
Open

feat(): add possibility to listen to change events #119

billyjov opened this issue Nov 20, 2019 · 2 comments

Comments

@billyjov
Copy link

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

@billyjov billyjov changed the title feat(): add possibily to listen to change events feat(): add possibility to listen to change events Nov 20, 2019
@wittlock
Copy link
Collaborator

wittlock commented Dec 2, 2019

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

@billyjov
Copy link
Author

billyjov commented Dec 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants