moosingin3space / wksp-for-firefox

Workspaces for Firefox, inspired by those in Linux desktop environments.
Apache License 2.0
9 stars 2 forks source link

Extension fails to open if keyDown blocked via Event.preventDefault #8

Open tyzoid opened 6 years ago

tyzoid commented 6 years ago

When element focus is on a button of some sort, the default action is still applied to that input. In certain cases, the extension fails to open the menu window.

This was discovered with the 'autoplay' toggle on YouTube in Firefox Developer Edition (60.0b15-1) on Arch.

tyzoid commented 6 years ago

Reproduced example: https://jsfiddle.net/5bab81jp/

blocks keyDown from bubbling via event.preventDefault()

moosingin3space commented 6 years ago

Hmmm, I will hop on IRC and ask if this is Firefox's intended behaviour or something I can affect.

moosingin3space commented 6 years ago

Was able to reproduce on Firefox 59 stable on Fedora 27 with your fiddle.