From: "Steven_Lord" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Disabling Ctrl + w
Date: Mon, 3 Dec 2012 17:13:15 -0500
Organization: MathWorks
Lines: 24
Message-ID: <k9j85s$omi$>
References: <k9j234$18q$>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Trace: 1354572796 25298 (3 Dec 2012 22:13:16 GMT)
NNTP-Posting-Date: Mon, 3 Dec 2012 22:13:16 +0000 (UTC)
In-Reply-To: <k9j234$18q$>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: comp.soft-sys.matlab:784087

"Nick " <> wrote in message 
> I am running matlab under windows 7.
> Sometimes when I go to save a file with ctrl+s I accidentally hit ctrl + w 
> and the entire matlab closes!
> Is there a way to disable this?

1) Change the keyboard shortcut using the Preferences.
2) The Confirmation Dialogs item under General in the Preferences may, 
depending on what release of MATLAB you're using, have an item that requires 
you to confirm before closing MATLAB.
3) Create a finish.m file that prompts you when you try to close MATLAB 
(accidentally or intentionally.)

Steve Lord
To contact Technical Support use the Contact Us link on