securitydialogs/Autolock/src/AutolockAppUi.cpp
branchRCL_3
changeset 13 bbcfd14ce6a7
parent 12 a005fc61b02a
child 16 9971b621ef6c
equal deleted inserted replaced
12:a005fc61b02a 13:bbcfd14ce6a7
   659 // ----------------------------------------------------
   659 // ----------------------------------------------------
   660 //
   660 //
   661 TKeyResponse CAutolockAppUi::HandleKeyEventL(
   661 TKeyResponse CAutolockAppUi::HandleKeyEventL(
   662     const TKeyEvent& aKeyEvent,TEventCode aType)
   662     const TKeyEvent& aKeyEvent,TEventCode aType)
   663     {
   663     {
   664 	if ( aKeyEvent.iCode == EKeyBell)
   664         
   665  		{
   665     if ( aKeyEvent.iCode == EKeyBell || (aType == EEventKeyUp && aKeyEvent.iScanCode == EStdKeyDeviceF) )      
   666  		HandleCommandL(ESecUiCmdUnlock);
   666 		{
       
   667 		if(iLocked)    
       
   668  		    HandleCommandL(ESecUiCmdUnlock);
   667  		return EKeyWasConsumed; 
   669  		return EKeyWasConsumed; 
   668  		}
   670  		}
   669 
   671 
   670     TBool featureNoPowerkey = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey );
   672     TBool featureNoPowerkey = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey );
   671     // If power key pressed, tell SysAp about if
   673     // If power key pressed, tell SysAp about if