camerauis/cameraapp/generic/src/CamCaptureSetupContainer.cpp
branchRCL_3
changeset 27 53c8aa5d97a3
parent 20 38fb6f7eacd5
child 31 8f559c47d7fd
--- a/camerauis/cameraapp/generic/src/CamCaptureSetupContainer.cpp	Tue May 11 15:56:11 2010 +0300
+++ b/camerauis/cameraapp/generic/src/CamCaptureSetupContainer.cpp	Tue May 25 12:22:04 2010 +0300
@@ -399,7 +399,7 @@
          ( IsCaptureKeyL( aKeyEvent, aType ) || IsShutterKeyL( aKeyEvent, aType ) ) ) )  
         {
         TKeyResponse response = iCaptureSetupControl->OfferKeyEventL( aKeyEvent, aType );
-        if ( aType == EEventKeyDown && IsShutterKeyL( aKeyEvent, aType ) && 
+        if ( aType == EEventKeyDown && response == EKeyWasNotConsumed &&
             ( ECamSettingItemDynamicPhotoFlash == iControlHandler.SettingType() ||
             ECamSettingItemDynamicSelfTimer == iControlHandler.SettingType() ) )
             {
@@ -409,8 +409,7 @@
             {
             iView.HandleCommandL( EAknSoftkeyOk );
             }
-        
-        return response;
+        return EKeyWasConsumed;
         }
     return iCaptureSetupControl->OfferKeyEventL( aKeyEvent, aType );
     }
@@ -713,7 +712,6 @@
     switch( aEventType )
         {
         
-        case EEventEnterKeyPressed:
         case EEventItemDoubleClicked:
               {
               iView.HandleCommandL(EAknSoftkeyOk);