chieffancypants / angular-hotkeys

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

How to add a attribute for hotkeys #251

Closed llovelylip closed 7 years ago

llovelylip commented 7 years ago

Hi all, I want to add a attribute for hotkeys, so that show combo difference between rootScope and scope. Please, example: Parent A has hotkeys with combo 'ctrl+a, ctrl+b, ctrl+c', Child has hotkeys with combo 'ctrl+e, ctrl+d'.But when display hotkeys of Child contain 'ctrl+a, ctrl+b, ctrl+c, ctrl+e, ctrl+d'. I want to only show hotkeys of Child reach to 'type' attribute. Plz help me declare 'type' in hotkeys.js

llovelylip commented 7 years ago

Resovle issue