summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-10-13 09:52:31 (GMT)
committeraxis <qt-info@nokia.com>2009-10-13 12:46:23 (GMT)
commit0d2fd0077258ca125ee6f4e00cefd3f5ed1fff15 (patch)
tree20c7afb2148e98521d41863ecc4f010577fff1d5
parentf40135a580c298fa01ac78fb3da121f13f75cdfb (diff)
downloadQt-0d2fd0077258ca125ee6f4e00cefd3f5ed1fff15.zip
Qt-0d2fd0077258ca125ee6f4e00cefd3f5ed1fff15.tar.gz
Qt-0d2fd0077258ca125ee6f4e00cefd3f5ed1fff15.tar.bz2
Fixed the QKeyEvent::nativeModifiers() call.
Earlier we returned a copy of the Qt modifiers. This patch fixes the call to return the real native Symbian one. RevBy: Sami Merila
-rw-r--r--src/gui/kernel/qapplication_s60.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 6919292..115e135 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -689,7 +689,7 @@ TKeyResponse QSymbianControl::OfferKeyEvent(const TKeyEvent& keyEvent, TEventCod
Qt::KeyboardModifiers mods = mapToQtModifiers(keyEvent.iModifiers);
QKeyEventEx qKeyEvent(type == EEventKeyUp ? QEvent::KeyRelease : QEvent::KeyPress, keyCode,
mods, qt_keymapper_private()->translateKeyEvent(keyCode, mods),
- false, 1, keyEvent.iScanCode, s60Keysym, mods);
+ false, 1, keyEvent.iScanCode, s60Keysym, keyEvent.iModifiers);
// WId wid = reinterpret_cast<RWindowGroup *>(keyEvent.Handle())->Child();
// if (!wid)
// Could happen if window isn't shown yet.