phoneapp/phoneuicontrol/src/cphonestateidle.cpp
changeset 4 c84cf270c54f
parent 0 5f000ab63145
child 9 8871b09be73b
child 21 92ab7f8d0eab
--- a/phoneapp/phoneuicontrol/src/cphonestateidle.cpp	Tue Jan 26 11:57:27 2010 +0200
+++ b/phoneapp/phoneuicontrol/src/cphonestateidle.cpp	Tue Feb 02 00:10:04 2010 +0200
@@ -265,10 +265,14 @@
             
         case EKeyApplication0:
             {
+            // Security mode
+            TPhoneCmdParamBoolean isSecurityMode;      
+            iViewCommandHandle->ExecuteCommandL( EPhoneViewGetSecurityModeStatus, &isSecurityMode );
+            	
             // If dialer is not open but phone is in foreground and phone receives
-            // applicaion-key event we have to open emergency dialer. No need own
-            // securitymode check because Applicationkey only captured in securitymode.
-            if ( !IsNumberEntryUsedL() )
+            // applicaion-key event we have to open emergency dialer. 
+            // Securitymode check because Applicationkey only open dialer in securitymode.
+            if ( isSecurityMode.Boolean() && !IsNumberEntryUsedL() )
                 {
                 HandleCommandL(EPhoneNumberAcqSecurityDialer);
                 }