camerauis/cameraapp/generic/src/CamShootingModeContainer.cpp
branchRCL_3
changeset 20 38fb6f7eacd5
parent 12 8c55c525d5d7
child 25 bf64cebf4673
equal deleted inserted replaced
18:51dda465e618 20:38fb6f7eacd5
   581         {
   581         {
   582         TKeyResponse response = iListBox->OfferKeyEventL( aKeyEvent, aType );
   582         TKeyResponse response = iListBox->OfferKeyEventL( aKeyEvent, aType );
   583         iView.HandleCommandL( EAknSoftkeySelect );
   583         iView.HandleCommandL( EAknSoftkeySelect );
   584         return response;
   584         return response;
   585         }
   585         }
       
   586     
       
   587     if ( iController.UiConfigManagerPtr()
       
   588          && iController.UiConfigManagerPtr()->IsAutoFocusSupported() )
       
   589         {
       
   590         if( aType == EEventKeyDown && IsShutterKeyL( aKeyEvent, aType ) )
       
   591             {
       
   592             TKeyResponse response = iListBox->OfferKeyEventL( aKeyEvent, aType );
       
   593             if( UserSceneHighlighted() )
       
   594                 {
       
   595                 iView.HandleCommandL( ECamCmdSelect );
       
   596                 }
       
   597                 else
       
   598                 {
       
   599                 iView.HandleCommandL( EAknSoftkeySelect );
       
   600                 }
       
   601             return response;
       
   602             }
       
   603         }
       
   604     else if( aType == EEventKeyDown && IsCaptureKeyL( aKeyEvent, aType ) )
       
   605         {
       
   606         TKeyResponse response = iListBox->OfferKeyEventL( aKeyEvent, aType );
       
   607         if( UserSceneHighlighted() )
       
   608             {
       
   609             iView.HandleCommandL( ECamCmdSelect );
       
   610             }
       
   611             else
       
   612             {
       
   613             iView.HandleCommandL( EAknSoftkeySelect );
       
   614             }
       
   615         return response;
       
   616         }
       
   617            
   586     TKeyResponse returnvalue = iListBox->OfferKeyEventL( aKeyEvent, aType );
   618     TKeyResponse returnvalue = iListBox->OfferKeyEventL( aKeyEvent, aType );
   587 
   619 
   588     // for non touch, we use key presses to scroll thru the scene modes
   620     // for non touch, we use key presses to scroll thru the scene modes
   589     // for touch with keyboard, key pressing can also scroll thru the scene modes
   621     // for touch with keyboard, key pressing can also scroll thru the scene modes
   590     // after every up and down key presses we display the tool tip
   622     // after every up and down key presses we display the tool tip