How to add keyboard events on static HTML elements
I recently stumbled upon an issue when trying to trigger keyboard events on an element and thought I did share how I managed to get it to work.
It seems you’ll need to add a tabindex attribute to the element if you want a keyboard event to be triggered according to this…