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

QKeySequenceEdit handles meta keys incorrectly on Wayland

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.1
    • Fix Version/s: None
    • Component/s: QPA: Wayland
    • Labels:
      None

      Description

      On Platform Wayland the QKeySequenceEdit dialog is not able to properly caputure shortcuts with Meta key.

      Steps to reproduce:

      1. Use a Wayland compositor (e.g. Weston or KWin)
      2. Start designer
      3. create a new form
      4. Add a QKeySequenceEdit
      5. Preview
      6. Press Meta and a

      Expected result:

      QKeySequenceEdit captures Meta + a

      Actual result:

      ៀ?, Meta+B

       

      As far as I investigated this is not a problem in QtWayland, but in QKeySequenceEdit. On Wayland pressing the Meta key generates Qt::Key_Super_L or Qt::Key_Super_R and not Qt::Key_Meta. Due to that the special handling for modifier key presses in QKeySequenceEdit::keyPressEvent does not work. See https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/widgets/qkeysequenceedit.cpp#n251

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                paeglis Gatis Paeglis
                Reporter:
                mgraesslin Martin Gräßlin
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes