Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.9.1
-
-
610bafdfc (dev)
Description
On Platform Wayland the QKeySequenceEdit dialog is not able to properly caputure shortcuts with Meta key.
Steps to reproduce:
- Use a Wayland compositor (e.g. Weston or KWin)
- Start designer
- create a new form
- Add a QKeySequenceEdit
- Preview
- 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
- relates to
-
QTBUG-74479 Rewrite QWaylandSeat::sendKeyEvent() via text-input extenssion or extend core protocol
- Closed
-
QTBUG-111992 QKeySequenceEdit can't register shortcuts with dead keys
- Reported
-
QTBUG-69715 QKeySequence::toString() returns garbage strings for some simple QKeySequence
- Closed
-
QTBUG-65503 Unify key handling code on linux
- Closed