Any way to control Matlab window focus?
I’ve seen questions asked related to figures explicitly, but not more generally.
I don’t know when it changed, I’ve just suffered with it from then until now (and probably for future too), but is there anything I can do to stop other bits of Matlab constantly taking focus away from the command window?
I’ve worked in basically the same way for 20 years in Matlab – I have code in files, sometimes it opens figures, sometimes I have the variable editor open, often it will hit a breakpoint where I want to investigate something.
99% if the time what I next want to do is type something in the command window – e.g. I put my breakpoint in because I want to investigate what is happening there, or I opened a figure and now want to set an axes property on it from command line or whatever, I always want to be typing in command window in these situations.
For many years this worked exactly as I want it to, which I guess is why that became my habit. But in more recent versions of Matlab focus is more and more beings stolen by other things:
I create a uifigure, the uifigure window has focus, so my typing achieves nothing
I hit a breakpoint and focus is on the editor window of the file with the breakpoint so now half the time I start typing the code I want to test on command window into my running file and have to undo it. This is never the behaviour I want.
Also recently I’ve been working with the variable editor open and now that steals focus on a breakpoint often too so now when I start typing it replaces some arbitrary cell of my array with text.
Is there really no way I can turn this awful behaviour off and just have it keep focus on the Command window unless I explicitly click on something else (or whatever it was it used to do, that was so intuitive to work with – I never really pinned down exactly what it did because it just worked in a common sense way)?I’ve seen questions asked related to figures explicitly, but not more generally.
I don’t know when it changed, I’ve just suffered with it from then until now (and probably for future too), but is there anything I can do to stop other bits of Matlab constantly taking focus away from the command window?
I’ve worked in basically the same way for 20 years in Matlab – I have code in files, sometimes it opens figures, sometimes I have the variable editor open, often it will hit a breakpoint where I want to investigate something.
99% if the time what I next want to do is type something in the command window – e.g. I put my breakpoint in because I want to investigate what is happening there, or I opened a figure and now want to set an axes property on it from command line or whatever, I always want to be typing in command window in these situations.
For many years this worked exactly as I want it to, which I guess is why that became my habit. But in more recent versions of Matlab focus is more and more beings stolen by other things:
I create a uifigure, the uifigure window has focus, so my typing achieves nothing
I hit a breakpoint and focus is on the editor window of the file with the breakpoint so now half the time I start typing the code I want to test on command window into my running file and have to undo it. This is never the behaviour I want.
Also recently I’ve been working with the variable editor open and now that steals focus on a breakpoint often too so now when I start typing it replaces some arbitrary cell of my array with text.
Is there really no way I can turn this awful behaviour off and just have it keep focus on the Command window unless I explicitly click on something else (or whatever it was it used to do, that was so intuitive to work with – I never really pinned down exactly what it did because it just worked in a common sense way)? I’ve seen questions asked related to figures explicitly, but not more generally.
I don’t know when it changed, I’ve just suffered with it from then until now (and probably for future too), but is there anything I can do to stop other bits of Matlab constantly taking focus away from the command window?
I’ve worked in basically the same way for 20 years in Matlab – I have code in files, sometimes it opens figures, sometimes I have the variable editor open, often it will hit a breakpoint where I want to investigate something.
99% if the time what I next want to do is type something in the command window – e.g. I put my breakpoint in because I want to investigate what is happening there, or I opened a figure and now want to set an axes property on it from command line or whatever, I always want to be typing in command window in these situations.
For many years this worked exactly as I want it to, which I guess is why that became my habit. But in more recent versions of Matlab focus is more and more beings stolen by other things:
I create a uifigure, the uifigure window has focus, so my typing achieves nothing
I hit a breakpoint and focus is on the editor window of the file with the breakpoint so now half the time I start typing the code I want to test on command window into my running file and have to undo it. This is never the behaviour I want.
Also recently I’ve been working with the variable editor open and now that steals focus on a breakpoint often too so now when I start typing it replaces some arbitrary cell of my array with text.
Is there really no way I can turn this awful behaviour off and just have it keep focus on the Command window unless I explicitly click on something else (or whatever it was it used to do, that was so intuitive to work with – I never really pinned down exactly what it did because it just worked in a common sense way)? window focus MATLAB Answers — New Questions









