Ben C
Ben C
So the Angular application, including the hotkeys stuff, is loaded inside an iframe, but it's only when the iframe does NOT have focus that the shortcuts work? That seems like...
OK, then the problem you have is pretty much exactly as described in the issue I linked to. It's not easy to fix, but if you want to try there...
@p1tt1 As mkilling suggests, this is probably due to the cheat sheet element not being visible over your page because you're not loading the stylesheet. If that doesn't help try...
@bparkhurst Sadly chieffancypants isn't active on this repo any more so you'll have to do this yourself, but it's easy, just edit the icon mapping for the shift key to...
@rankill @chrifmarwen @morteza-gho Parameters from where? Normally all you need to know is that a particular key/combo has been pressed. However if there is other data that you know or...
@morteza-gho Is that the `$index` that Angular provides for you in the `ngRepeat` directive? I'm not really sure why you would want to tie a hotkey to specific DOM elements...
@morteza-gho Take a look at this: https://www.bennadel.com/blog/2450-using-ngcontroller-with-ngrepeat-in-angularjs.htm It describes how to use the ngController directive to define a controller to be used for _each item_ in an ngRepeat loop. Then...
Works fine for me: https://plnkr.co/MtiI5X
Hmm yeah it seems to have trouble loading, but if you click the "Launch in Editor" button you can see the code and run it.
`hotkeys.purgeHotkeys()`