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

Improve Documentation of directive-based hotkeys #274

Open
molerat619 opened this issue Sep 20, 2017 · 1 comment
Open

Improve Documentation of directive-based hotkeys #274

molerat619 opened this issue Sep 20, 2017 · 1 comment

Comments

@molerat619
Copy link

Reading the documentation, it is not clear to me how to use the directive-based hotkeys.

I want to use them on a link so there is no function in the scope that I would want to call. So the example of <modal title="Modal Title" hotkey="{esc: close}"> does not offer a solution for that simple case.

How can I make a keystroke click a simple button or link that then takes the user wherever?

@aramando
Copy link

Directive-based hotkey definitionss have to refer to a function on the scope. You need to create one to do what you want if there isn't one already.

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

No branches or pull requests

2 participants