Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
4.7.1, 4.7.2, 4.7.3
-
Windows 7/XP
Description
The first time my application receives a keyPressEvent for a "4" key pressed in my keyboard, it registers it wrong. They QKeyEvent::key() should return 52, but it actually returns 126. QKeyEvent::text() returns "4" as expected.
This only happens for the first "4" I press, as the next inputs work as expected: key() returns 52 and text() returns "4".
I'm pretty sure this bug only happens on Windows (tested on 7 and XP), and not on GNU/Linux.
I'm attaching a minimal test case. I've tested it pressing keys 1, 2, 3, 4, 4 again, and 5.
Expected output:
49 "1"
50 "2"
51 "3"
52 "4"
52 "4"
53 "5"
Actual output:
49 "1"
50 "2"
51 "3"
126 "4"
52 "4"
53 "5"
Attachments
Issue Links
- duplicates
-
QTBUG-33591 Bug in handling of US International Keyboard Layout on Windows
- Closed
For Gerrit Dashboard: QTBUG-19176 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
15807,1 | Fixed value of keyPressEvent key with certain keyboard layouts | 4.8 | qt/qt | Status: ABANDONED | -1 | 0 |
32158,2 | Fixed value of keyPressEvent key with certain keyboard layouts | master | qt/qtbase | Status: ABANDONED | 0 | 0 |