summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiikka Inkila <ext-riikka.j.inkila@nokia.com>2012-05-04 10:06:46 +0300
committerPasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>2012-05-07 09:50:41 +0200
commitc67e253210a209327784ad5ef22cef40882ada9d (patch)
tree7485d804199b8388677899d9f2c980e40e8a40af
parent3280fef791c408e7bff49bbe91898a01bcdeb452 (diff)
Fix Symbian key event code mapping in QSymbianControl
Symbian key events that represent characters/symbols whose Unicode values are above the value range of S60 special keys are currently mapped incorrectly to S60 special key events within QSymbianControl class. This must be fixed as Symbian AknFEP can nowadays deliver character input from virtual keyboards to FEP-aware text editors only by simulating a corresponding key event and virtual keyboards can obviously contain characters and symbols whose Unicode values are above the S60 special key value range. Task-number: ou1cimx1#979068 Change-Id: I57c4e87f6a532641ece7d45f29d3956ebb25b736 Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com> (cherry picked from commit 46048bd1c8e3a6b9e50f6f37bfd7a454b17f9c65)
-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 e24914fe9e..358d6adae3 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -1053,7 +1053,7 @@ TKeyResponse QSymbianControl::sendSymbianKeyEvent(const TKeyEvent &keyEvent, QEv
int keyCode;
if (s60Keysym == EKeyNull){ //some key events have 0 in iCode, for them iScanCode should be used
keyCode = qt_keymapper_private()->mapS60ScanCodesToQt(keyEvent.iScanCode);
- } else if (s60Keysym >= 0x20 && s60Keysym < ENonCharacterKeyBase) {
+ } else if ((s60Keysym >= 0x20 && s60Keysym < ENonCharacterKeyBase) || s60Keysym >= (ENonCharacterKeyBase + ENonCharacterKeyCount)) {
// Normal characters keys.
keyCode = s60Keysym;
} else {