summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeymapper_win.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-10-08 16:02:01 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-08 16:02:01 (GMT)
commit3945fd75a93d790434b33c2d23add155893a82a4 (patch)
treee83166a337857381d1c152d0bb9c0f1c5d101efc /src/gui/kernel/qkeymapper_win.cpp
parentf7e13aefc24b98299d8fd44cad60cc13b16e4114 (diff)
parentaa863c61ec5e68ff73c02e25a2954cdba9c2ef15 (diff)
downloadQt-3945fd75a93d790434b33c2d23add155893a82a4.zip
Qt-3945fd75a93d790434b33c2d23add155893a82a4.tar.gz
Qt-3945fd75a93d790434b33c2d23add155893a82a4.tar.bz2
Merge branch '4.5' into 4.6
Conflicts: src/gui/itemviews/qheaderview.cpp
Diffstat (limited to 'src/gui/kernel/qkeymapper_win.cpp')
-rw-r--r--src/gui/kernel/qkeymapper_win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qkeymapper_win.cpp b/src/gui/kernel/qkeymapper_win.cpp
index 10958f3..be207df 100644
--- a/src/gui/kernel/qkeymapper_win.cpp
+++ b/src/gui/kernel/qkeymapper_win.cpp
@@ -905,8 +905,8 @@ bool QKeyMapperPrivate::translateKeyEvent(QWidget *widget, const MSG &msg, bool
if(msg.wParam == VK_PROCESSKEY)
return true;
- // Ignore invalid virtual keycode (see bug 127424)
- if (msg.wParam == 0xFF)
+ // Ignore invalid virtual keycodes (see bugs 127424, QTBUG-3630)
+ if (msg.wParam == 0 || msg.wParam == 0xFF)
return true;
// Translate VK_* (native) -> Key_* (Qt) keys