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

Improve Documentation of directive-based hotkeys

Open molerat619 opened this issue 7 years ago • 1 comments

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?

molerat619 avatar Sep 20 '17 14:09 molerat619

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.

aramando avatar Sep 20 '17 15:09 aramando