summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiikka Inkila <ext-riikka.j.inkila@nokia.com>2012-05-04 07:06:46 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-05-04 13:10:46 (GMT)
commit46048bd1c8e3a6b9e50f6f37bfd7a454b17f9c65 (patch)
treec2980bc7acf40470fb9d7dc7bd56b1c8ee32e63c
parentb14450aeb393acd6c951241d073947a178ccbc36 (diff)
downloadQt-46048bd1c8e3a6b9e50f6f37bfd7a454b17f9c65.zip
Qt-46048bd1c8e3a6b9e50f6f37bfd7a454b17f9c65.tar.gz
Qt-46048bd1c8e3a6b9e50f6f37bfd7a454b17f9c65.tar.bz2
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>
-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 e24914f..358d6ad 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 {