src/hbplugins/inputmethods/touchinput/hbinputbasic12keyhandler.cpp
changeset 30 80e4d18b72f5
parent 23 e6ad4ef83b23
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
   216         }
   216         }
   217 
   217 
   218         if (buttonId == HbInputButton::ButtonKeyCodeShift) {
   218         if (buttonId == HbInputButton::ButtonKeyCodeShift) {
   219             // single tap of shift key toggles prediction status in case insensitive languages
   219             // single tap of shift key toggles prediction status in case insensitive languages
   220             // The Editor should not be Web or URL which allows only Latin Alphabet
   220             // The Editor should not be Web or URL which allows only Latin Alphabet
   221             if (!HbInputSettingProxy::instance()->globalInputLanguage().isCaseSensitiveLanguage() &&
   221             if (!mInputMethod->inputState().language().isCaseSensitiveLanguage() &&
   222                                 ((HbEditorConstraintLatinAlphabetOnly | HbEditorConstraintAutoCompletingField)!=focusObject->editorInterface().inputConstraints()) &&
   222                                 ((HbEditorConstraintLatinAlphabetOnly | HbEditorConstraintAutoCompletingField)!=focusObject->editorInterface().inputConstraints()) &&
   223                 // when the language does not support prediction in that case we should not update the state and prediction
   223                 // when the language does not support prediction in that case we should not update the state and prediction
   224                 HbPredictionFactory::instance()->predictionEngineForLanguage(mInputMethod->inputState().language())) {
   224                 HbPredictionFactory::instance()->predictionEngineForLanguage(mInputMethod->inputState().language())) {
   225                 HbInputSettingProxy::instance()->togglePrediction();
   225                 HbInputSettingProxy::instance()->togglePrediction();
   226             } else {
   226             } else {