chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 248 forks source link

Array combo of hotkeys fails on second binding. #236

Open ArekX opened 8 years ago

ArekX commented 8 years ago

I am working on application which needs to rebind the same keys when user switches pages, we have same keys for some actions and since this uses Mousetrap it supports array of combos which works fine when they are added first time to the scope (I am using bindTo), but when that scope is destroyed and that array of keys need to be added to another scope it either adds one or none to that scope.