Hi Julian, I have a Toggle button added as a custom component in an AlertWindow. (For a “Do Not Show Again”). The problem is, user’s are used to hitting return to dismiss the dialog(I have an “OK” button). Currently when they do this it dismisses the alertwindow AND set’s the Do not show again.
At first I tried clearShortcuts on the component, but that had no effect. The culprit is…
bool Button::keyPressed (const KeyPress& key)
if (isEnabled() && key.isKeyCode (KeyPress::returnKey))
Any suggestions? I thought about removing the key listener but would like to add ‘spacebar’ as a keyshortcut for the toggle button.