phoneapp/phoneuicontrol/src/cphonestateidle.cpp
changeset 4 c84cf270c54f
parent 0 5f000ab63145
child 9 8871b09be73b
child 21 92ab7f8d0eab
equal deleted inserted replaced
1:838b0a10d15b 4:c84cf270c54f
   263                 }
   263                 }
   264             break;
   264             break;
   265             
   265             
   266         case EKeyApplication0:
   266         case EKeyApplication0:
   267             {
   267             {
       
   268             // Security mode
       
   269             TPhoneCmdParamBoolean isSecurityMode;      
       
   270             iViewCommandHandle->ExecuteCommandL( EPhoneViewGetSecurityModeStatus, &isSecurityMode );
       
   271             	
   268             // If dialer is not open but phone is in foreground and phone receives
   272             // If dialer is not open but phone is in foreground and phone receives
   269             // applicaion-key event we have to open emergency dialer. No need own
   273             // applicaion-key event we have to open emergency dialer. 
   270             // securitymode check because Applicationkey only captured in securitymode.
   274             // Securitymode check because Applicationkey only open dialer in securitymode.
   271             if ( !IsNumberEntryUsedL() )
   275             if ( isSecurityMode.Boolean() && !IsNumberEntryUsedL() )
   272                 {
   276                 {
   273                 HandleCommandL(EPhoneNumberAcqSecurityDialer);
   277                 HandleCommandL(EPhoneNumberAcqSecurityDialer);
   274                 }           
   278                 }           
   275             }
   279             }
   276             break;
   280             break;