Home Download Buy Blog Forum Support

Don't close the application on CTRL-W

Don't close the application on CTRL-W

Postby IDEs of March on Fri Apr 13, 2012 1:54 pm

CTRL-W is the keyboard shortcut for closing an internal window. If I've say 3 files open and I want to close them I may press that keyboard shortcut repeatedly. But if there are no windows open then the application shuts down. How can I stop this happening? It's not standard behaviour and it's a bit irritating. If I want to close the application I will use the standard ALT-F4 shortcut.

PS Sublime Text 2 rocks
IDEs of March
 
Posts: 3
Joined: Fri Apr 13, 2012 1:50 pm

Re: Don't close the application on CTRL-W

Postby jps on Fri Apr 13, 2012 4:17 pm

Ctrl+W matches, by and large, behavior seen in web browsers, and is imo correct.

That being said, if you rebind ctrl+w to "close_file", instead of "close", it should behave as you ask for.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Don't close the application on CTRL-W

Postby IDEs of March on Fri Apr 13, 2012 10:03 pm

jps wrote:if you rebind ctrl+w to "close_file", instead of "close", it should behave as you ask for.


That worked for me, thanks.
IDEs of March
 
Posts: 3
Joined: Fri Apr 13, 2012 1:50 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 11 guests