In Firefox, certain websites and certain plugins appear to "capture" the "control" key, so that when I try to open a new tab using Ctrl+T, nothing happens - or worse, something unexpected happens.
Examples:
- On the Codecademy site, while editing code, Ctrl+T either does nothing, or switches the position of the two characters next to the cursor.
- When viewing PDF's with the Adobe PDF plugin, Ctrl+Tdoes nothing.
Is there a way to disable this "feature"? I would like Ctrl+T to always "talk" to Firefox!
Edit:
I found that my question is very similar to the following questions:
- How to prevent keystroke grabbing/hijacking by websites in Firefox?
- How do I prevent pages I visit from overriding selected Firefox shortcut keys?
The answers to these questions are interesting and relevant, but do not give a method on how to disable combinations such as Ctrl+T. Maybe a modified Greasemonkey script is the easiest solultion.
Edit 2 - A partial solution
The following Userscript (edit: now an answer) was mostly copy/pasted from StackExchange. To use it, you need to install GreaseMonkey. The script successfully captures Ctrl+T on some sites, for example Google (-> PopUp "Gotcha" appears), but not on the Codecademy site.
Also, I found another question pertaining to this subject: How to forbid keyboard shortcut stealing by websites in Firefox. It was raised in 2010, and the consensus was: It can't be done.
Edit 3 - Made the userscript work
I edited the userscript so that it now successfully prevents javascripts from intercepting Ctrl+T, and thanks to JC2k8 I also found a workaround for plugins (which I have not tested yet). I combined the information and submitted an answer - I'll wait a few days and accept the answer with the highest votes.