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

Shortcuts for QML actions are not exported to screenreader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10
    • None

      Consider the following QML code:

       

      import QtQuick
      import QtQuick.Controls
      
      Item {
          Button {
              text: "Foo"
              onClicked: console.warn("Hello")
              action: Action {
                  shortcut: "Ctrl+L"
              }
          }
      } 

      The button has a shortcut assigned to it. This shortcut should be exposed to the accessibility tree so that screenreaders can announce it.

      QAccessibleActionInterface has keyBindingsForAction, but that doesn't seem to be implemented in QAccessibleQuickItem at all

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes