MATLAB Answers

WindowKeyPressFcn blocked when a uiprogressdlg is active - any workarounds?

1 view (last 30 days)
Will Grant
Will Grant on 9 Feb 2021
Edited: Will Grant on 9 Feb 2021
I have a WindowKeyPressFcn on a uifigure and I would like it to continue to respond to key presses when a uiprogressdlg is active.
It appears that the uiprogressdlg blocks events going to the figure.
But uiprogressdlg does not appear to have any ability to add any key/button handlers directly to it. Only the ability to add the 'cancelable' button, which does not actually fire a callback when pressed.
I already tried inspecting the hidden properties of the uiprogressdlg object via struct(), and I can find handles back to the parent figure, but nothing that appears to be a control or object for the uiprogressdlg where I could add event handlers.
Are there any workarounds to this?

Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!