camerauis/cameraapp/generic/src/CamShootingModeContainer.cpp
branchRCL_3
changeset 20 38fb6f7eacd5
parent 12 8c55c525d5d7
child 25 bf64cebf4673
--- a/camerauis/cameraapp/generic/src/CamShootingModeContainer.cpp	Wed Apr 14 15:41:04 2010 +0300
+++ b/camerauis/cameraapp/generic/src/CamShootingModeContainer.cpp	Tue Apr 27 16:19:06 2010 +0300
@@ -583,6 +583,38 @@
         iView.HandleCommandL( EAknSoftkeySelect );
         return response;
         }
+    
+    if ( iController.UiConfigManagerPtr()
+         && iController.UiConfigManagerPtr()->IsAutoFocusSupported() )
+        {
+        if( aType == EEventKeyDown && IsShutterKeyL( aKeyEvent, aType ) )
+            {
+            TKeyResponse response = iListBox->OfferKeyEventL( aKeyEvent, aType );
+            if( UserSceneHighlighted() )
+                {
+                iView.HandleCommandL( ECamCmdSelect );
+                }
+                else
+                {
+                iView.HandleCommandL( EAknSoftkeySelect );
+                }
+            return response;
+            }
+        }
+    else if( aType == EEventKeyDown && IsCaptureKeyL( aKeyEvent, aType ) )
+        {
+        TKeyResponse response = iListBox->OfferKeyEventL( aKeyEvent, aType );
+        if( UserSceneHighlighted() )
+            {
+            iView.HandleCommandL( ECamCmdSelect );
+            }
+            else
+            {
+            iView.HandleCommandL( EAknSoftkeySelect );
+            }
+        return response;
+        }
+           
     TKeyResponse returnvalue = iListBox->OfferKeyEventL( aKeyEvent, aType );
 
     // for non touch, we use key presses to scroll thru the scene modes