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

added support to define classNames in allowIn #204

Open djusv opened 8 years ago

djusv commented 8 years ago

I needed this for a particular case and I thought I would share my code.

chieffancypants commented 8 years ago

What is the particular case?

djusv commented 8 years ago

I had 2 input element visible on 1 page = 1-search-input, 2-textbox-message-input.

I didn't want the hotkey-action to be called when the user was typing in input#1 but the hotkey-action should be triggered when the user had focus on input#2 triggered the combo.