Fork me on GitHub
#reagent
<
2016-04-05
>
shaunxcode00:04:45

I am attempting to put an on-key-down or on-key-press etc. event on a div but I can never seem to get it to fire - are these only supported on :input ?

adamkowalski00:04:35

i think its possible but the div would have to be focusable

adamkowalski00:04:45

try putting a tab-index on there

adamkowalski00:04:21

yeah tab-index works and then for your css just make a :focus { outline:none }

shaunxcode01:04:39

oh interesting fix! thanks!