src/hbplugins/inputmethods/touchinput/virtualqwerty.cpp
changeset 30 80e4d18b72f5
parent 28 b7da29130b0e
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
   417             mQwertyAlphaKeypad->setMode(EModeAbc, HbModifierShiftPressed);
   417             mQwertyAlphaKeypad->setMode(EModeAbc, HbModifierShiftPressed);
   418         } else {
   418         } else {
   419             mQwertyAlphaKeypad->setMode(EModeAbc, HbModifierNone);
   419             mQwertyAlphaKeypad->setMode(EModeAbc, HbModifierNone);
   420         }
   420         }
   421     }
   421     }
   422 
   422     // need to make sure that the prediction mode handler has the input state's language set 
       
   423     // it is the global input language by default
       
   424     if(mPredictionModeHandler && newState.language().language() != HbInputSettingProxy::instance()->globalInputLanguage().language()) {
       
   425         HbInputLanguage inputStateLang = newState.language();
       
   426         mPredictionModeHandler->setLanguage(inputStateLang);
       
   427     }
   423     HbInputModeHandler *previousModeHandler = mActiveModeHandler;
   428     HbInputModeHandler *previousModeHandler = mActiveModeHandler;
   424     if (newState.inputMode() == HbInputModeNumeric) {
   429     if (newState.inputMode() == HbInputModeNumeric) {
   425         mActiveModeHandler = mNumericModeHandler;
   430         mActiveModeHandler = mNumericModeHandler;
   426     }  else if (newState.inputMode() == HbInputModeDefault && usePrediction()) {
   431     }  else if (newState.inputMode() == HbInputModeDefault && usePrediction()) {
   427         mActiveModeHandler = mPredictionModeHandler;
   432         mActiveModeHandler = mPredictionModeHandler;