KeyPressed and EnterModalState

enterModalState

It then runs a loop, dispatching messages from the system message queue, but blocking all mouse or keyboard messages from reaching any components other than this one and its children.

Is this 100% true. I have a progress bar I’m bringing up. I call enter modal state in the constructor. When another shortcut key is pressed, the keyPressed handler on a component that isn’t my modal progress bar component is still called (and goes on to crash the app).

Do I need to capture all the keypresses in my progressbar and dump them?

The keypresses should be going to your progressbar - but if your progressbar doesn’t handle them they will be posted up the view hierarchy. Have you tried simply catching the keypresses and dumping them?

Makes sense.

Could be fractionally clearer in the docs.

Will fix :slight_smile:

I’ll update the docs. thanks!