Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2.0
-
None
Description
If you open the menu of a QToolButton via the keyboard and then go through the items with the arrow keys, disabled menu items are skipped.
See this GIF for the regular behavior:
Here moving further down skips the last entry and we end up at the top again.
Now enable a high contrast mode in Windows 11 (Settings -> Accessiblity -> Contrast themes). For example the "Aquatic" theme and try again.
Interesstingly, now you CAN select the inactive item.
Is this a deliberate choice, to make it easier to figure out that an item is deactivated? If yes, one could argue that the same behavior would be useful in the regular style as well.
Also see QTBUG-113362 which is related to this. I guess even without a high contrast theme it would be useful to make items selectable with the keyboard, so that they can be narrated as "deactivated".
OR, if that is too much of a change, this behavior should be enabled whenever a screen-reader is active, rather then when a high-contrast theme is used.