I'm using MATLAB R2012a with a dual-screen setup, so I have the command window on one screen and the M-file editor on the other. Sometimes when I make changes to my source code, I'll accidentally press Ctrl+S while the command window is in focus (instead of the editor). This loads a file chooser dialog for saving a MAT file of the workspace. However, regardless of whether I press "Cancel" or "OK", MATLAB hangs indefinitely. Is there something I can do so that saving the workspace doesn't fail?
I don't really care about being able to save the workspace, I just need it to work so that MATLAB doesn't hang whenever I accidentally try to.

MATLAB_JAVAenvironment variable). So make sure thats not the case for you - Amro