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

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

    XMLWordPrintable

    Details

    • Platform/s:
      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

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

            Activity

              People

              • Assignee:
                teemu.holappa Teemu Holappa
                Reporter:
                nagrohn Nahomi Gröhn
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes