On Windows it is something common to close a window by pressing ESC key. I'm looking for a solution that would allow me to close the current Window and the application when I press ESC.

Currently the Preferences panel does not allow you to set a shortcut for ESC.

Use case: you open a file from another application inside a viewer or editor and you want to return to the initial application just by pressing ESC once.

  • 3
    Most Windows apps don't quit when you hit escape; they usually only close dialog boxes and pop-up panels. This is the same behavior on the Mac. – Cajunluke Mar 17 '11 at 14:13

Off the top of my head:

Downlod KeyRemap4Macbook http://pqrs.org/macosx/keyremap4macbook/

See if you can't find a setting for escape, I'm not sure if there is one. Remap it to Command + Q.


You can press Command + W for closing the window and Command + Q to quit the applicaiton.

Like Open Word , open two different doc files and then if you wan to close only one file then just select that and press Command + w , only that file will be closed.

Hope this is the solutions for you.

  • 1
    I am already aware about common shortcuts, my question was if I can obtain the specified behavior in some way. – sorin Mar 17 '11 at 12:01

You must log in to answer this question.

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