textinput/peninputvkbkr/src/PeninputVkbKrWindow.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 3 f5a1e66df979
child 12 5e18d8c489d6
--- a/textinput/peninputvkbkr/src/PeninputVkbKrWindow.cpp	Wed Apr 14 16:18:34 2010 +0300
+++ b/textinput/peninputvkbkr/src/PeninputVkbKrWindow.cpp	Tue Apr 27 16:59:43 2010 +0300
@@ -1208,7 +1208,7 @@
     /* for CButtonBase
     TRgb color( KRgbBlack );  // sane default for nonskinned case
     AknsUtils::GetCachedColor( 
-        AknsUtils::SkinInstance(),
+        UiLayout()->SkinInstance(),
         color,
         KAknsIIDQsnTextColors,
         EAknsCIQsnTextColorsCG59);
@@ -1384,7 +1384,7 @@
 
     TAknsItemID id;
     
-    MAknsSkinInstance* skininstance = AknsUtils::SkinInstance();
+    MAknsSkinInstance* skininstance = UiLayout()->SkinInstance();
 
     TInt popWinBmpId = aRes.ReadInt16();
     TInt popWinBmpMaskId = aRes.ReadInt16();
@@ -1539,6 +1539,17 @@
         }           
     }
 
+void CPeninputVkbKrWindow::DimEnterKey( TBool aDimmed )
+    {
+	CAknFepCtrlEventButton* enterBtn = static_cast<CAknFepCtrlEventButton*>
+	                              ( Control(EPeninutWindowCtrlIdEnterBtn) );	
+    if( iLayoutContext->LayoutType() == EPluginInputModeFSQ 
+       && enterBtn )
+        {
+        enterBtn->SetDimmed( aDimmed );        
+        }
+    }
+
 void CPeninputVkbKrWindow::ShowBubble(TInt aShow)
     {
     if (aShow > 0)