uifw/AknGlobalUI/AknCapServer/src/aknKeyFilter.cpp
changeset 47 2f0c06423c72
parent 0 2f259fa3e83a
--- a/uifw/AknGlobalUI/AknCapServer/src/aknKeyFilter.cpp	Thu Jul 29 14:21:56 2010 +0800
+++ b/uifw/AknGlobalUI/AknCapServer/src/aknKeyFilter.cpp	Fri Aug 06 17:25:01 2010 +0800
@@ -91,7 +91,6 @@
     FreeHardwareStateKeys();
 
     RWindowGroup& groupWin = iCoeEnv->RootWin();
-    groupWin.CancelCaptureKeyUpAndDowns( iHomeKeyHandle );
     groupWin.CancelCaptureKeyUpAndDowns( iQwertyOnKeyHandle );
     groupWin.CancelCaptureKeyUpAndDowns( iQwertyOffKeyHandle );
     groupWin.CancelCaptureKey( iFlipOpenKeyHandle );
@@ -111,7 +110,6 @@
 void CAknServKeyFilter::ConstructL( CAknCapAppServerAppUi& aAppUi )
     {
     RWindowGroup& groupWin = iCoeEnv->RootWin();
-    iHomeKeyHandle      = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication0, 0, 0);
     iQwertyOnKeyHandle  = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication7, 0, 0); // EKeyQwertyOn
     iQwertyOffKeyHandle = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication8, 0, 0); // EKeyQwertyOff
     iFlipOpenKeyHandle  = groupWin.CaptureKey(EKeyDeviceA, 0, 0); // EKeyFlipOpen
@@ -342,11 +340,7 @@
         return EKeyWasConsumed;
         }
 
-    if ( aKeyEvent.iScanCode == EStdKeyApplication0 )
-        {
-        return HandleHomeKeyEventL( aType );
-        }
-    else if ( aKeyEvent.iScanCode == EStdKeyApplication7 || // EKeyQwertyOn
+    if ( aKeyEvent.iScanCode == EStdKeyApplication7 || // EKeyQwertyOn
               aKeyEvent.iScanCode == EStdKeyApplication8 )  // EKeyQwertyOff
         {
         return HandleQwertyKeyEvent( aKeyEvent, aType );
@@ -360,58 +354,6 @@
     }
 
 
-// ---------------------------------------------------------------------------
-// CAknServKeyFilter::HandleHomeKeyEventL
-// Handles the pressing of applications key.
-// ---------------------------------------------------------------------------
-//
-TKeyResponse CAknServKeyFilter::HandleHomeKeyEventL( TEventCode aType )
-    {
-    if ( iAppUi->IsAppsKeySuppressed() )
-        {
-        return EKeyWasNotConsumed;
-        }
-
-    if ( aType == EEventKeyDown )
-        {
-        delete iHomeTimer;
-        iHomeTimer = NULL;
-        iHomeTimer = CPeriodic::NewL( CActive::EPriorityHigh );
-
-        iHomeTimer->Start( KHomeHoldDelay, 1, TCallBack( HomeTickL, this ) );
-        return EKeyWasConsumed;
-        }
-    else if ( aType == EEventKeyUp )
-        {
-        if ( iHomeTimer && iHomeTimer->IsActive() )
-            {
-            iHomeTimer->Cancel();
-            delete iHomeTimer;
-            iHomeTimer = NULL;
-            if ( !iAppUi->HandleShortAppsKeyPressL() )
-                {
-                RWsSession& ws = iEikonEnv->WsSession();
-                TApaTaskList apList( ws );
-                TApaTask task = apList.FindApp( iHomeViewId.iAppUid );
-                if( task.Exists() && task.WgId() == ws.GetFocusWindowGroup() )
-                    {
-                    GfxTransEffect::BeginFullScreen(
-                        AknTransEffect::EApplicationExit,
-                        TRect(),
-                        AknTransEffect::EParameterType,
-                        AknTransEffect::GfxTransParam( iHomeViewId.iAppUid ) );
-                    }
-
-                ToggleShellL();
-                }
-
-            return EKeyWasConsumed;
-            }
-        }
-
-    return EKeyWasNotConsumed;
-    }
-
 
 // ---------------------------------------------------------------------------
 // CAknServKeyFilter::HandleQwertyKeyEvent