diff options
author | Oliver Wolff <oliver.wolff@digia.com> | 2012-11-14 12:06:15 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-14 12:54:32 (GMT) |
commit | 98b49f88fa1dfe593bf8e4291bd12419d47c26aa (patch) | |
tree | 89ba635aa4099a0b306daf1f7ac4cf635e2d89d5 /src/gui/math3d | |
parent | 2b7ec50666d9e9b2cd8c0c74e8a3c889b77cfd1e (diff) | |
download | Qt-98b49f88fa1dfe593bf8e4291bd12419d47c26aa.zip Qt-98b49f88fa1dfe593bf8e4291bd12419d47c26aa.tar.gz Qt-98b49f88fa1dfe593bf8e4291bd12419d47c26aa.tar.bz2 |
Windows: Fixed handling of key events containing ctrl modifier
QKeyEvent::key() returned the wrong value if the ctrl modifier was used
in that key event. That was due to the fact that ToUnicode might not
return the correct code for these events/keyboard states. While it works
for alt+shift+= (us layout) and gives '+' as unicode value it just
claims that it cannot translate the given state for ctrl+shift+=. So if
the control modifier is used and ToUnicode return 0 toKeyOrUnicode
should try again without the control modifier.
Task-number: QTBUG-10781
Change-Id: I771f7ed18bcce60d1c7c3f6157d169d4e80ddd60
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/gui/math3d')
0 files changed, 0 insertions, 0 deletions