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