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

forceActiveFocus() moves the screen reader only once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.7.2
    • None
    • Android, iOS/tvOS/watchOS, macOS

      When moving the screen reader's focus to some reasonable element by calling forceActiveFocus(), it is indeed moved on the first call. However, this does not work a second time as the underlying QQuickItem still "has" the focus. The MWE from QTBUG-126622 applies here as well.

      For iOS/macOS there seems to be suitable callbacks:

      https://developer.apple.com/documentation/objectivec/nsobject/1615183-accessibilityelementdidbecomefoc?changes=la&language=objc

      https://developer.apple.com/documentation/objectivec/nsobject/1615082-accessibilityelementdidlosefocus?changes=la&language=objc

      Do these need to set/reset the Item's focus property.

        1. App.qml
          0.5 kB
          Jan Möller
        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
            janmoeller Jan Möller
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes