Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Update: While the following should still work (I no longer have access to a Windoze box), pyrospade points out that there is a way to do this directly from within Console2 nowadays. I have no idea if that's accurate but I wanted to point it out. Thanks!

Now, on with the show!

I'm an Emacs/Mac user trapped on Windows at work and I often type Control-W from muscle memory to delete a word and thus by mistake kill the entire window, including everything that I was working on. This a particularly egregious problem for Console2 as I run GNU Screen and am often doing many things at once.

Is there any way to completely disable Control-W or remap it to something that is far harder to type?


Update: The solution I ended up with is the following:

My AutoHotkey configuration now looks like this.

#IfWinNotActive emacs@XXXXXXXXXXXX

Cause let's be honest, I was really doing this just because I use emacs. :)

share|improve this question
Good thinking with the window title conditional there. – Nathaniel Apr 13 '10 at 2:12
For future readers, not that there is a way to change the setting in Console2 - Edit > Settings > Hotkeys - find "Close tab", click the Clear button, then the Assign button. – pyrospade Jun 4 '13 at 21:49
up vote 2 down vote accepted

I've found this comment:

To actually answer your question...Search for "key mapper" on google. Among others it will lead you to which lists many (some reviewed) mappers. One that is listed there that may be what you need is, but I can't be positive from the description, however you can ask them. At least this will point you in the right direction. Take the usual precautions when downloading and installing shareware.

I believe that this will allow you to disable CTRL-W on a Windows level (not just IE), but perhaps that is what you meant by "I don't ever want to use it."

on this post.

I've not investigated the link fully as yet, but it looks like it (or something like it) is what you want.

share|improve this answer
It seems one could also easily write an AutoHotkey script to intercept the hotkey and do nothing with it. It looks like ^c::Return would do the trick. – Nathaniel Apr 12 '10 at 15:44
I have two PCs at work; one w/ admin rights and own w/o. I ended up going with How To Geek's Suggestions for the box that I have admin rights to and with @Nathaniel's suggestion on the machine w/o. – Tim Visher Apr 12 '10 at 17:09
See my update. I'm now not using a registry hack. – Tim Visher Apr 12 '10 at 18:58

Disabling the combo altogether for the whole system is not necessary; just open Console2, go to Edit->Settings->Hotkeys, and change the Close Tab hotkey to something else.

share|improve this answer
The problem is just particularly offensive in Console2. It's till pretty offensive everywhere else. :) However, this will at least relieve part of the paint point. – Tim Visher Apr 12 '10 at 16:35
“Everwhere else”? Like where? The Start Menu? The desktop? Why are you pressing Ctrl-W to select a word in those places? – Synetech Apr 13 '10 at 16:26

This article describes various means and programs : "Remapping the Keyboard Layout in Windows", either yourself via the registry, or by using the utilities SharpKeys or KeyTweak.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.