I'd like to be able to run my code in a web extension when the user presses Ctrl+T
(or possibly other built-in keyboard shortcuts). Is that possible? MDN says
If a key combination is already used by the browser (like "Ctrl+P") or by an existing add-on, then you can't override it. You can define it, but your event handler will not be called when the user presses the key combination.
but maybe there is another way, e.g. via listening to keyboard events? I use Firefox, but I'm interested in solutions for other browsers, too.