My app starts by displaying a modal login window. The ‘login’ button has ‘enter’ defined as a hotkey so the user can activate the login without the mouse. This window is hidden upon successful login. I’ve just added a text control in the main app window and when the enter key is hit the login window (now hidden) still receives the hotkey. Should a hidden still get the event and if so how can I keep the event from being passed to the hidden window.
Hello,
Should a hidden still get the event
“hotkey” of a button view does not depend on the button state (focus, visibility).
how can I keep the event from being passed to the hidden window
You can check isVisible() result in a hotkey handler: