fep/aknfep/src/AknFepUiInputStateQwerty.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 44 ecbabf52600f
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   696 		// numeric character that valid numeric character never be inserted.
   696 		// numeric character that valid numeric character never be inserted.
   697 		// Earlier this was not happening, because key map with numeric key always
   697 		// Earlier this was not happening, because key map with numeric key always
   698 
   698 
   699 		
   699 		
   700 		CPtiQwertyKeyMappings* maps = static_cast<CPtiQwertyKeyMappings*>(lang->GetQwertyKeymappings());
   700 		CPtiQwertyKeyMappings* maps = static_cast<CPtiQwertyKeyMappings*>(lang->GetQwertyKeymappings());
       
   701         maps->SetKeyboardType(ptiengine->KeyboardType());
   701         TBool keyNotMapToNumeric(ETrue);
   702         TBool keyNotMapToNumeric(ETrue);
   702 #ifdef RD_INTELLIGENT_TEXT_INPUT
   703 #ifdef RD_INTELLIGENT_TEXT_INPUT
   703         if(maps)
   704         if(maps)
   704             {
   705             {
   705             maps->GetDataForKey((TPtiKey)aInScanCode, keys, EPtiCaseFnLower);
   706             maps->GetDataForKey((TPtiKey)aInScanCode, keys, EPtiCaseFnLower);
  1194                     numKey.iCode += KLatinToDevanagariDigitsDelta;							
  1195                     numKey.iCode += KLatinToDevanagariDigitsDelta;							
  1195                     numKey.iModifiers = numKey.iModifiers|EModifierSpecial;							
  1196                     numKey.iModifiers = numKey.iModifiers|EModifierSpecial;							
  1196                     }
  1197                     }
  1197                 }
  1198                 }
  1198             // Disable UI framewroks's qwerty iCode conversion for simulated event.	
  1199             // Disable UI framewroks's qwerty iCode conversion for simulated event.	
  1199             numKey.iModifiers |= EModifierSpecial;		
  1200             numKey.iModifiers |= EModifierSpecial;					
  1200             
  1201             if(!(fepMan->IsHybridAplhaEditor() && !fepMan->IsHybridAlphaModeChangedtoAplhanumeric()))
  1201             //as the editor is a Java number editor, we did not simulate the number key event  
       
  1202             if(!(fepMan->IsHybridAplhaEditor() && !fepMan->IsHybridAlphaModeChangedtoAplhanumeric())
       
  1203                  && !fepMan->IsSpecialNumericEditor() )
       
  1204                 {
  1202                 {
  1205                 CCoeEnv::Static()->SimulateKeyEventL(numKey, EEventKey);                        
  1203                 CCoeEnv::Static()->SimulateKeyEventL(numKey, EEventKey);                        
  1206 #ifdef RD_INTELLIGENT_TEXT_INPUT
  1204 #ifdef RD_INTELLIGENT_TEXT_INPUT
  1207                 CCoeEnv::Static()->SimulateKeyEventL(numKey, EEventKeyUp);
  1205                 CCoeEnv::Static()->SimulateKeyEventL(numKey, EEventKeyUp);
  1208 #endif
  1206 #endif