textinput/peninputgenericitut/src/peninputgenericitutwindowmanager.cpp
branchRCL_3
changeset 18 c8fb4cf7b3ae
parent 14 e6a39382bb9c
--- a/textinput/peninputgenericitut/src/peninputgenericitutwindowmanager.cpp	Tue Apr 27 16:59:43 2010 +0300
+++ b/textinput/peninputgenericitut/src/peninputgenericitutwindowmanager.cpp	Tue May 11 16:31:42 2010 +0300
@@ -170,35 +170,38 @@
             break;        
         case EEventButtonUp:
             {
-            //from pen input switch button
-            if (aCtrl->ControlId() == ECtrlIdSwitch)
-                {
-                TRAP_IGNORE( iWindow->Icf()->UpdateSecretTextL() );
-                ShowInputModeSwitchL();
-                }
-            else if (aCtrl->ControlId() == ECtrlIdArrowUp)
-                {
-                TRAP_IGNORE(iWindow->Icf()->HandleArrowBtnEventL(
-                                                          CFepLayoutMultiLineIcf::EArrowUp));
-                }
-            else if (aCtrl->ControlId() == ECtrlIdArrowDown)
-                {
-                TRAP_IGNORE(iWindow->Icf()->HandleArrowBtnEventL(
-                                                          CFepLayoutMultiLineIcf::EArrowDown));
-                }
-            else if (aCtrl->ControlId() == ECtrlIdClose)
-                {
-                iLayoutOwner->SignalOwner(ESignalLayoutClosed);
-                }
-            else if (aCtrl->ControlId() == ECtrlIdOptions)
-                {
-                iLayoutOwner->SignalOwner(ESignalLaunchOptionsMenu);
-//                static_cast<CAknFepCtrlCommonButton*>(aCtrl)->SetDimmed(ETrue);
-                }
-            else if (aCtrl->ControlId() == ECtrlIdIndicator)
-                {
-                iLayoutOwner->SignalOwner(ESignalGetEditMenuData);
-                }                
+            if ( iAllowHandleRawKeyEvent )
+            	{
+				//from pen input switch button
+				if (aCtrl->ControlId() == ECtrlIdSwitch)
+					{
+					TRAP_IGNORE( iWindow->Icf()->UpdateSecretTextL() );
+					ShowInputModeSwitchL();
+					}
+				else if (aCtrl->ControlId() == ECtrlIdArrowUp)
+					{
+					TRAP_IGNORE(iWindow->Icf()->HandleArrowBtnEventL(
+															  CFepLayoutMultiLineIcf::EArrowUp));
+					}
+				else if (aCtrl->ControlId() == ECtrlIdArrowDown)
+					{
+					TRAP_IGNORE(iWindow->Icf()->HandleArrowBtnEventL(
+															  CFepLayoutMultiLineIcf::EArrowDown));
+					}
+				else if (aCtrl->ControlId() == ECtrlIdClose)
+					{
+					iLayoutOwner->SignalOwner(ESignalLayoutClosed);
+					}
+				else if (aCtrl->ControlId() == ECtrlIdOptions)
+					{
+					iLayoutOwner->SignalOwner(ESignalLaunchOptionsMenu);
+	//                static_cast<CAknFepCtrlCommonButton*>(aCtrl)->SetDimmed(ETrue);
+					}
+				else if (aCtrl->ControlId() == ECtrlIdIndicator)
+					{
+					iLayoutOwner->SignalOwner(ESignalGetEditMenuData);
+					}
+            	}
             }
             break;
         case EItutCmdArrowUp: