angular-hotkeys
angular-hotkeys copied to clipboard
Hotkeys cleared on page reload?
If you define hotkeys in a property on the route configuration, they're bound on $routeChangeSuccess. However, if you reload the same route, $routeChangeSuccess is not fired again and all of the hotkeys are cleared out during bootstrap. Is there a way to persist hotkeys defined in the route configuration through reloading the same page?
Good point -- this should definitely be addressed. I'll see if I can take a look tonight
I can't tell if I'm having the same issue described or something different. Basically, when I define hotkeys on one route, everything works as expected. Then when I move away to another route and then back to the original, the hotkeys seem to be firing the appropriate function in $scope, however, any directives watching data aren't evaluated as if the angular digest loop isn't kicking off.
Example: http://www.seminull.com/angular/hotkeys
Page1 has the hotkey '/' defined. It'll show a div by setting some data to true. Navigate to Page2 and then back to Page1 and you can see in the console that the function is invoked, however the div does not show.