diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-02-01 17:30:43 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-02-01 17:30:43 (GMT) |
commit | 6a34243acbd6960502efefd1af4a560c245301da (patch) | |
tree | c74f27db7563855f9bfb09c1f1ab7716551803a1 /src/plugins/graphicssystems | |
parent | 9f761b8d9af22796e7b20fee2a9a464e253cf267 (diff) | |
download | Qt-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.cpp | 6 |
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) |