I need a <div>
that should be able to get key down events. For that reason I have to add the attribute tabindex="0"
, as suggested here.
The "collateral effect" is that the <div>
become "tabbable" and this is not desired because tab should just traverse input fields.
Is there a "trick" to avoid it or the only way is to catch the tab event, search for the next input field (so skipping DIVs) and than prevent the default behavior?