Added missing keysym to handleExtendedKeyEvent in xcb plugin.
authorSamuel Rødal <samuel.rodal@digia.com>
Wed, 3 Oct 2012 06:52:43 +0000 (08:52 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Oct 2012 08:44:12 +0000 (10:44 +0200)
Now it's propagated to QKeyEvent::nativeVirtualKey() as it should.

Task-number: QTBUG-27353
Change-Id: I40921b99662951decc83d2278e0cd337266dd530
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/plugins/platforms/xcb/qxcbkeyboard.cpp

index be04bf1..a8542af 100644 (file)
@@ -1108,7 +1108,7 @@ void QXcbKeyboard::handleKeyEvent(QWindow *window, QEvent::Type type, xcb_keycod
 
     if (!filtered)
         QWindowSystemInterface::handleExtendedKeyEvent(window, time, type, qtcode, modifiers,
-                                                       code, 0, state, string.left(count), isAutoRepeat);
+                                                       code, sym, state, string.left(count), isAutoRepeat);
 
     if (isAutoRepeat && type == QEvent::KeyRelease) {
         // since we removed it from the event queue using checkEvent we need to send the key press here
@@ -1129,7 +1129,7 @@ void QXcbKeyboard::handleKeyEvent(QWindow *window, QEvent::Type type, xcb_keycod
         }
         if (!filtered)
             QWindowSystemInterface::handleExtendedKeyEvent(window, time, QEvent::KeyPress, qtcode, modifiers,
-                                                           code, 0, state, string.left(count), isAutoRepeat);
+                                                           code, sym, state, string.left(count), isAutoRepeat);
     }
 }