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

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

XMLWordPrintable

    • Linux/X11, Windows

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes