src/hbplugins/inputmethods/touchinput/hbinputprediction12keyhandler.cpp
changeset 30 80e4d18b72f5
parent 28 b7da29130b0e
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
   188         return true;
   188         return true;
   189     }
   189     }
   190 
   190 
   191     if (buttonId == HbInputButton::ButtonKeyCodeShift) {
   191     if (buttonId == HbInputButton::ButtonKeyCodeShift) {
   192         // single tap of shift key toggles prediction status in case insensitive languages
   192         // single tap of shift key toggles prediction status in case insensitive languages
   193         if (!HbInputSettingProxy::instance()->globalInputLanguage().isCaseSensitiveLanguage()) {
   193         if (!mInputMethod->inputState().language().isCaseSensitiveLanguage()) {
   194             HbInputSettingProxy::instance()->togglePrediction();
   194             HbInputSettingProxy::instance()->togglePrediction();
   195         } else {
   195         } else {
   196             if (mShiftKeyDoubleTap) {
   196             if (mShiftKeyDoubleTap) {
   197                 mTimer->stop();
   197                 mTimer->stop();
   198                 mShiftKeyDoubleTap = false;
   198                 mShiftKeyDoubleTap = false;