phoneapp/phoneuiview/src/cphoneviewcontroller.cpp
branchRCL_3
changeset 73 e30d4a1b8bad
parent 69 8baf28733c3d
child 81 c26cc2a7c548
--- a/phoneapp/phoneuiview/src/cphoneviewcontroller.cpp	Tue Sep 14 21:18:17 2010 +0300
+++ b/phoneapp/phoneuiview/src/cphoneviewcontroller.cpp	Wed Sep 15 12:12:21 2010 +0300
@@ -2311,6 +2311,16 @@
         appKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents );
 
         iKeyCaptureController->StopCapturingKey( &appKeyCaptureParam );
+        
+        // Uncapture the Camera key for sure, if it exists
+        if ( !iSecurityMode && FeatureManager::FeatureSupported( KFeatureIdCamera ) )
+            {
+            TPhoneCmdParamKeyCapture cameraKeyCaptureParam;
+            cameraKeyCaptureParam.SetKey( EStdKeyDevice7 );
+            cameraKeyCaptureParam.SetKeyCode( EKeyDevice7 );
+            cameraKeyCaptureParam.SetCaptureType( EPhoneKeyAllEvents );
+            iKeyCaptureController->StopCapturingKey( &cameraKeyCaptureParam );
+            }
         }
     }