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

Sending key event through sendEvent from QObject event filter ignores QML Shortcut

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      When sending key event through sendEvent, the event is ignored by Shortcut in QML.
      It seems the same problem as QTBUG-48325 but this is in QML. 

       How to reproduce:
      1. Run attached sample code
      2. Press "A" key

       
      Expected output:
      receive Key event code=0x00000041
      receive Key event code=0x00000042
      qml: B received
      qml: onPressed: key=42
      qml: onPressed: key=41

      Actual output:
      receive Key event code=0x00000041
      receive Key event code=0x00000042
      qml: onPressed: key=42
      qml: onPressed: key=41

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-78304
          # Subject Branch Project Status CR V

          Activity

            People

              teemu.holappa Teemu Holappa
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes