AbstractButton controls (Button, CheckBox, Switch) do not respond to Enter/Return keys by default.
-
Problem:
- Qt Quick Controls (Button, CheckBox, Switch, etc.) only respond to Space key, not Enter/Return
- Enter/Return does nothing even when controls have keyboard focus
- Inconsistent with standard UI behavior across other platforms
Is this behavior intentional? Right now we have to add a manual Keys.onPressed workaround
to every custom control. It would be great if AbstractButton handled Enter/Return by
default for better accessibility and consistency with standard keyboard navigation. Are
there any plans to add this in a future Qt release? -
Hi and welcome to devnet,
You should check over on the bug report system to see if there's something already opened on the subject.
Which version of Qt are you using ?