4

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?

Rene

2
  • Happens to me too every now and then because in IntelliJ IDEA Ctrl-W means something else and gets used a lot...
    – Jonik
    Nov 3, 2009 at 20:22
  • Ctrl/Cmd+W is supposed to close the current window/tab on all OS. In fact this is an accesibility bug in IntelliJ products and it already have a bug opened at youtrack.jetbrains.net/issue/…
    – sorin
    Sep 15, 2011 at 13:19

5 Answers 5

4

Firefox can be configured not to close the window when you close the last tab. Use about config to set browser.tabs.closeWindowWithLastTabto false.

If you don't even want firefox to close tabs with C-t, then you'll have to use something like keyconfig to change the shortcut.

0
3

Keyconfig extension <-- Could be what your looking for. It lets you change the keyboard bindings in Firefox.

1
  • Can you garantee it's not malware or something like that? The webpage is obscure, points to a huge forum thread, doesn't say the licence and doen't show the source code. I only found the binary to install...
    – user39559
    Sep 8, 2010 at 9:31
0

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.

0

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.

-1

Ctrl-W = Close Tab. It closes the browser when no tabs are left. Open a new blank tab, and it shouldn't cause the whole browser to close (just that tab).

2
  • 1
    I assume that closing any tab is not appreciated by the question asker?
    – Arjan
    Nov 3, 2009 at 21:50
  • Opening a new tab will help there aswell. Unless he presses it twice.
    – Macha
    Nov 3, 2009 at 23:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .