Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113364

Accessibility: QToolButton menu behaves differently in high contrast mode

    XMLWordPrintable

Details

    • Windows

    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.
       

      Attachments

        1. bad.gif
          bad.gif
          22 kB
        2. Good.gif
          Good.gif
          33 kB
        3. image-2023-05-03-14-37-51-227.png
          image-2023-05-03-14-37-51-227.png
          22 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jan2014 Jan Krassnigg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes