199 ( aKeyEvent.iScanCode == iPrimaryCameraCaptureKeys[0] || |
199 ( aKeyEvent.iScanCode == iPrimaryCameraCaptureKeys[0] || |
200 CCamContainerBase::IsShutterKeyL(aKeyEvent, aType) ) && |
200 CCamContainerBase::IsShutterKeyL(aKeyEvent, aType) ) && |
201 !static_cast<CCamAppUi*>( iEikonEnv->AppUi() )->IsSecondCameraEnabled() ) |
201 !static_cast<CCamAppUi*>( iEikonEnv->AppUi() )->IsSecondCameraEnabled() ) |
202 || ( IsCaptureKeyL(aKeyEvent, aType)) ) |
202 || ( IsCaptureKeyL(aKeyEvent, aType)) ) |
203 { |
203 { |
204 // in case we receive an enter key or MSK key event in standby mode |
204 // in case we receive MSK key event in standby mode |
205 // we should not call HandleCommandL function with ECamCmdExitStandby |
205 // we should not call HandleCommandL function with ECamCmdExitStandby |
206 // because by default application will get a left softkey command id |
206 // because by default application will get a left softkey command id |
207 // when MSK is pressed. In standby mode left softkey command id is |
207 // when MSK is pressed. In standby mode left softkey command id is |
208 // ECamCmdExitStandby |
208 // ECamCmdExitStandby |
209 if ( !( ( aType == EEventKey || |
209 if ( !( ( aType == EEventKey || |
210 aType == EEventKeyDown || |
210 aType == EEventKeyDown || |
211 aType == EEventKeyUp ) && |
211 aType == EEventKeyUp ) && |
212 ( aKeyEvent.iScanCode == EStdKeyDevice3 || |
212 aKeyEvent.iScanCode == EStdKeyDevice3 ) ) |
213 aKeyEvent.iScanCode == EStdKeyEnter ) ) ) |
|
214 { |
213 { |
215 iView.HandleCommandL( ECamCmdExitStandby ); |
214 iView.HandleCommandL( ECamCmdExitStandby ); |
216 } |
215 } |
217 return EKeyWasConsumed; |
216 return EKeyWasConsumed; |
218 } |
217 } |