Configure Up Arrow to switch to command window when in figure window

2 次查看(过去 30 天)
A number of versions back, when a plot would be generated in a figure window and the figure window was the active window, pressing the up arrow would return the cursor to the command prompt. In recent versions, it seems pressing up arrow while in a figure window activates the zoom-in function. How can the up arrow be configured to swich to the command window instead of zoom-in on a figure window?
  1 个评论
Walter Roberson
Walter Roberson 2023-8-8
When there are no Key Press callbacks for a figure, then typing into the figure triggers a refocus to the command window and sending the pressed keys to the command window. The up-arrow was not special: it was just less obvious. A space, for example, would have done the same thing.

请先登录,再进行评论。

回答(1 个)

Sai Teja G
Sai Teja G 2023-8-22
Hi Jeremy,
I understand that you want to go to command window on click of up_arrow from figure window.
If you press any key that does not have any associated key callbacks, it will take you from the figure window to the command window, not just the up arrow key.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by