pmalecka / shortkeys

A Firefox extension for custom keyboard shortcuts
https://addons.mozilla.org/en-US/firefox/addon/shortkeys
MIT License
11 stars 4 forks source link

Cannot block Ctrl-Q shortcut #6

Closed legendre6891 closed 6 years ago

legendre6891 commented 7 years ago

I would like to disable ctrl-q as a keyboard shortcut to quit Firefox (57 beta).

I set ctrl+q to do nothing in the plugin preferences, but ctrl-q still quits the browser.

pmalecka commented 7 years ago

This does not seem to be possible at the moment. The current Firefox API does not have support for overriding Firefox keyboard shortcuts.

pmalecka commented 7 years ago

I looked into this a bit more in depth, can you confirm that this does not work in the context of a webpage ( e.g. click into a webpage before pressing the key combo)? I can apparently block some actions such as ctrl+j, but not others: ctrl+w. I am guessing some Firefox shortcuts just have higher priority than the webpage.

legendre6891 commented 7 years ago

Thanks; I can confirm that Ctrl+q does not work in the context of a webpage.