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

QKeySequenceEdit handles meta keys incorrectly on Wayland

    XMLWordPrintable

Details

    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

              liaqi Liang Qi
              mgraesslin Martin Gräßlin
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: