Control of arrow keys

2 views (last 30 days)
John Petersen
John Petersen on 17 May 2012
I have a gui with next and back buttons that display successive graphs. Is there a way to enable the left/right arrow keys to control this as with the back/next buttons?

Accepted Answer

Walter Roberson
Walter Roberson on 17 May 2012
WindowKeyPressFcn at the figure level.
Caution: if zoom or pan are active then they take over control of key presses. A workaround for this exists though.

More Answers (0)

Categories

Find more on Specifying Target for Graphics Output in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!