equal
deleted
inserted
replaced
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 |