camerauis/cameraapp/generic/src/CamCaptureSetupContainer.cpp
branchRCL_3
changeset 22 f54ad444594d
parent 19 e32fcfe0045f
equal deleted inserted replaced
21:289bbfdb6627 22:f54ad444594d
   391     if ( ( aKeyEvent.iCode == EKeyOK && aKeyEvent.iRepeats == 0 && aType == EEventKey ) ||
   391     if ( ( aKeyEvent.iCode == EKeyOK && aKeyEvent.iRepeats == 0 && aType == EEventKey ) ||
   392          ( aType == EEventKey && 
   392          ( aType == EEventKey && 
   393          ( IsCaptureKeyL( aKeyEvent, aType ) || IsShutterKeyL( aKeyEvent, aType ) ) ) )  
   393          ( IsCaptureKeyL( aKeyEvent, aType ) || IsShutterKeyL( aKeyEvent, aType ) ) ) )  
   394         {
   394         {
   395         TKeyResponse response = iCaptureSetupControl->OfferKeyEventL( aKeyEvent, aType );
   395         TKeyResponse response = iCaptureSetupControl->OfferKeyEventL( aKeyEvent, aType );
   396         if ( aType == EEventKey && response == EKeyWasNotConsumed &&
   396         if ( aType == EEventKey && response == EKeyWasNotConsumed && aKeyEvent.iCode != EKeyOK &&
   397             ( ECamSettingItemDynamicPhotoFlash == iControlHandler.SettingType() ||
   397             ( ECamSettingItemDynamicPhotoFlash == iControlHandler.SettingType() ||
   398             ECamSettingItemDynamicSelfTimer == iControlHandler.SettingType() ) )
   398             ECamSettingItemDynamicSelfTimer == iControlHandler.SettingType() ) )
   399             {
   399             {
   400             iView.HandleCommandL( EAknSoftkeyCancel );
   400             iView.HandleCommandL( EAknSoftkeyCancel );
   401             }
   401             }