summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-02-01 17:30:43 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-02-01 17:30:43 (GMT)
commit6a34243acbd6960502efefd1af4a560c245301da (patch)
treec74f27db7563855f9bfb09c1f1ab7716551803a1 /src/plugins/graphicssystems
parent9f761b8d9af22796e7b20fee2a9a464e253cf267 (diff)
downloadQt-6a34243acbd6960502efefd1af4a560c245301da.zip
Qt-6a34243acbd6960502efefd1af4a560c245301da.tar.gz
Qt-6a34243acbd6960502efefd1af4a560c245301da.tar.bz2
minimaldfb: dont send all key presses with character
Diffstat (limited to 'src/plugins/graphicssystems')
-rw-r--r--src/plugins/graphicssystems/minimaldfb/qdirectfbinput.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/graphicssystems/minimaldfb/qdirectfbinput.cpp b/src/plugins/graphicssystems/minimaldfb/qdirectfbinput.cpp
index 6229b46..cfe1807 100644
--- a/src/plugins/graphicssystems/minimaldfb/qdirectfbinput.cpp
+++ b/src/plugins/graphicssystems/minimaldfb/qdirectfbinput.cpp
@@ -192,7 +192,11 @@ void QDirectFbInput::handleKeyEvents(const DFBEvent &event)
long timestamp = (event.window.timestamp.tv_sec*1000) + (event.window.timestamp.tv_usec/1000);
timestamp /= 1000;
- QApplicationPrivate::handleKeyEvent(event.window.window_id, timestamp, type, key, modifiers, QChar(event.window.key_symbol));
+ QChar character;
+ if (DFB_KEY_TYPE(event.window.key_symbol) == DIKT_UNICODE)
+ character = QChar(event.window.key_symbol);
+
+ QApplicationPrivate::handleKeyEvent(event.window.window_id, timestamp, type, key, modifiers, character);
}
void QDirectFbInput::handleEnterLeaveEvents(const DFBEvent &event)