Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

When closing a window (like notepad or Windows Explorer), I've been realizing that when I do Ctrl-W there will be a short lag but when I do Alt-Space-C there will be no lag.

Does anyone know what exactly is the difference between these 2 shortcuts?

share|improve this question
3  
Why aren't you using Alt-F4? Alt-Space-C will not work with every program, nor will Ctrl-W. – MBraedley May 9 '11 at 11:03
1  
@MBraedley the F4 key is too far. either Ctrl-W or Alt-Space-C is much much faster with some practice. Alt-Space-C works with every program that i use though.. – Pacerier May 9 '11 at 11:33
    
except Notepad z – Pacerier May 15 '11 at 15:56
up vote 7 down vote accepted

Alt+Space, C is a sequence that uses Alt+Space to open the window controls menu1, and then C to select the Close option.

Activating the Close option in this way is normally the equivalent to using Alt+F4, and so Windows will issue the process a WM_CLOSE signal, telling it to terminate.

As with Alt+F4, a program can catch and/or ignore this command (often for very good reasons - think of Word's "do you want to save before you quit?" dialog box, for example).

1. I've just made this name up for it, it probably has a real one somewhere.


Ctrl+W is a shortcut only provided by the program, and the program can choose to handle the shortcut in whatever way it sees fit.

This involves no action by the operating system.

share|improve this answer
2  
Actually, I was somewhat mistaken in my previous comment above. Pressing space while holding Alt will work it every program (with some very specific exceptions that I can't name right now). However, using Alt, then space, then C will not work with all programs. – MBraedley May 9 '11 at 12:37
    
@MBraedley, yes you're right. Using Alt+Space together is much more reliable at opening the window controls menu (as I'm calling it). Have now edited the answer to use than instead, thanks. – DMA57361 May 9 '11 at 12:43

You must log in to answer this question.

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