keypress callback in figure

1 view (last 30 days)
pascal plisson
pascal plisson on 22 Aug 2018
Answered: Rik on 22 Aug 2018
I have written a callback for capturing some keyboard press inside a figure and performing some actions on my plot. This callback works fine except when one of the togglebutton of the figure tool toolbar is selected (for instance Pan).
How can I have my callback also working when these togglebuttons are on ?

Accepted Answer

Rik
Rik on 22 Aug 2018
As far as I know you can't. Interactive tools like pan and rotate3d block most of the callbacks (you can't even set them when those modes are active). The only 'solution' would be to not have those tools active.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!