angular-hotkeys icon indicating copy to clipboard operation
angular-hotkeys copied to clipboard

Bind hotkey to single element

Open cielusinski opened this issue 8 years ago • 3 comments

Hello,

Is there any way that i can bind the hotkey to a single element? For an example: if i have date field in my form and i want to open a calendar with a hotkey, is there a way that i can bind the hotkey to work only with this field? When i bind a hotkey, i triggers independent of the field focus.

Thanks in advance.

cielusinski avatar May 30 '16 12:05 cielusinski

+1

fontiana avatar Sep 12 '16 16:09 fontiana

I am also interested in this as well as binding to elements within a given controller/scope. For example, I have a page with three tabs on it. I would like to make it so that the hotkeys for a given tab are only fired when that tab is active.

Thanks!

ryanfinken avatar Sep 14 '16 21:09 ryanfinken

this is also what i need! i am using ng-repeat to generate DOM(form and input),what i want is to bind hotkey only to one input! however if i bind some function to its parent controller,it wont take effect , only way is to use global hotkey

ibreathebsb avatar Jan 10 '17 10:01 ibreathebsb