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.
- 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!
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