From 83e7f61b61c9778428f9c667967c3409c2f95f8a Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Thu, 29 Mar 2012 10:54:29 +0200 Subject: Forward native key codes to QWindowSystemInterface Using QWindowSystemInterface::handleExtendedKeyEvent() instead of QWindowSystemInterface::handleKeyEvent(). While the former allows us to forward the native key codes to QWindowSystemInterface, the latter initializes them with 0, causing QKeyEvent::native*() to return 0, instead of the actual values. Change-Id: I596ad2e07645e091529ca514682c98d095244a73 Reviewed-by: Sean Harmer Reviewed-by: Kevin Krammer Reviewed-by: Robin Burchell --- src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp b/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp index 9ac5ca4a05..46780b6a60 100644 --- a/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp +++ b/src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp @@ -160,7 +160,8 @@ void QQnxScreenEventHandler::injectKeyboardEvent(int flags, int sym, int modifie key = keyTranslator(cap); } - QWindowSystemInterface::handleKeyEvent(QGuiApplication::focusWindow(), type, key, qtMod, keyStr); + QWindowSystemInterface::handleExtendedKeyEvent(QGuiApplication::focusWindow(), type, key, qtMod, + scan, sym, modifiers, keyStr); #if defined(QQNXSCREENEVENT_DEBUG) qDebug() << "QQNX: Qt key t=" << type << ", k=" << key << ", s=" << keyStr; #endif -- cgit v1.2.3