Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.3
-
None
-
Belgian keyboard
Linux/X11 Debian Sid
Description
When using QKeySequence with a µ key, it is replaced by M which is not the same key.
When entering Ctrl+µ, QKeySequence replace it with Ctrl+M.
This is on a Belgian keyboard where M and µ key are not the same.
See https://en.wikipedia.org/wiki/File:Belgian_keyboard_layout.png
This is probably caused by this line:
https://code.woboq.org/qt5/qtbase/src/gui/kernel/qkeysequence.cpp.html#1176
ret |= accelRef.at(0).toUpper().unicode();
as QString("µ").toUpper() == "M".
This can be reproduced with the attached python script findkey.py , which print this on my system:
$ cat findkey.py import PyQt5.QtGui as QtGui print("New QKeySequence: ", QtGui.QKeySequence("Ctrl+µ").toString(QtGui.QKeySequence.NativeText)) $ python3 findkey.py New QKeySequence: Ctrl+Μ
Attachments
Issue Links
- relates to
-
QTBUG-108665 Only Turkish upper i-dotted (İ) key doesn't work and triggering Home key event
- Reported
-
QTBUG-93858 Some XKB letter keysyms are not properly converted to corresponding Qt keys
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-89620 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
468739,18 | QKeySequence: factor out key canonicalization | dev | qt/qtbase | Status: NEW | +1 | 0 |
501388,6 | QKeySequence: handle all keys in Qt::Key with unique names | dev | qt/qtbase | Status: NEW | 0 | 0 |