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

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Walter Roberson
Walter Roberson il 8 Ago 2023
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.

Accedi per commentare.

Risposte (1)

Sai Teja G
Sai Teja G il 22 Ago 2023
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!

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by