Home » Questions » Computers [ Ask a new question ]

How can I prevent firefox from closing when I press ctrl-w

How can I prevent firefox from closing when I press ctrl-w

In my favorite editor (vim), I regularly use ctrl-w to execute a certain action. Now, it quite often happens to me that firefox is the active window (on windows) while I still look at vim (thinking vim is the active window) and press ctrl-w which closes firefox. This is not what I want. Is there a way to stop ctrl-w from closing firefox?

Asked by: Guest | Views: 205
Total answers/comments: 2
bert [Entry]

"I haven't really found a solution to my problem, but the best thing I could come up with is to press CTRL-SHIFT-T which re-opens the last tab that was closed with CTRL-W.

Unfortunatelly, this may not bring back the text you were typing in a form."
bert [Entry]

"You could write a universal greasemonkey script that embeds a Flash SWF into the page that intercepts keystrokes.

Then again, you're probably not looking for a programmatic solution. Try SuperUser."