I have a div in my dom which is contentEditable
and that div contains a table inside it:
<div contentEditable>
<table id="editableTable">
<tr>
<td> My content </td>
</tr>
</table>
</div>
I can edit the value of td.
But however when I attach a keydown
event listener on that table (or td), the event is not triggered.
The keydown
is triggered on the contentEditable div only.
How to listen to the keydown
event on the table (or td) but not on the contentEditable
div?