textinput/peninputvkbcn/src/peninputvkblayout.cpp
branchRCL_3
changeset 11 c8fb4cf7b3ae
parent 9 e6a39382bb9c
child 12 5e18d8c489d6
equal deleted inserted replaced
9:e6a39382bb9c 11:c8fb4cf7b3ae
   872 void CAknFepVkbLayout::ChangeInputLanguage(TInt aLangID)
   872 void CAknFepVkbLayout::ChangeInputLanguage(TInt aLangID)
   873     {
   873     {
   874     //1.Notify engine the language need to change
   874     //1.Notify engine the language need to change
   875     //const TDesC& showText = iDataMgr->SetInputLanguage(aLangID);
   875     //const TDesC& showText = iDataMgr->SetInputLanguage(aLangID);
   876     TInt switchDisplayLang = iDataMgr->SetInputLanguage(aLangID);
   876     TInt switchDisplayLang = iDataMgr->SetInputLanguage(aLangID);
       
   877     
       
   878     CFepLayoutMultiLineIcf* icf = iVkbWindow->InputContextField();
       
   879     if ( icf )
       
   880     	{
       
   881 		icf->SetLanguageId( aLangID );
       
   882     	}
       
   883     
   877     TBuf<10> showText;    
   884     TBuf<10> showText;    
   878     AknPenInputUtils::GetISOLanguageCode(TLanguage(switchDisplayLang), showText);
   885     AknPenInputUtils::GetISOLanguageCode(TLanguage(switchDisplayLang), showText);
   879     
   886     
   880     SendEventToVkbControl(EVkbEventLanguageChanged,NULL,showText);     
   887     SendEventToVkbControl(EVkbEventLanguageChanged,NULL,showText);     
   881     }
   888     }