uifw/AvKon/src/AknPreviewPopUp.cpp
branchRCL_3
changeset 18 fcdfafb36fe7
parent 17 a1caeb42b3a3
child 19 aecbbf00d063
equal deleted inserted replaced
17:a1caeb42b3a3 18:fcdfafb36fe7
   667 // -----------------------------------------------------------------------------
   667 // -----------------------------------------------------------------------------
   668 // CAknPreviewPopUp::OfferKeyEventL
   668 // CAknPreviewPopUp::OfferKeyEventL
   669 // -----------------------------------------------------------------------------
   669 // -----------------------------------------------------------------------------
   670 //
   670 //
   671 TKeyResponse CAknPreviewPopUp::OfferKeyEventL( const TKeyEvent& /*aKeyEvent*/,
   671 TKeyResponse CAknPreviewPopUp::OfferKeyEventL( const TKeyEvent& /*aKeyEvent*/,
   672                                                TEventCode /*aType*/ )
   672                                                TEventCode aType )
   673     {
   673     {
       
   674     TKeyResponse ret ( EKeyWasNotConsumed );
       
   675 
   674     if ( !( iFlags & CAknPreviewPopUpController::EPermanentMode ) )
   676     if ( !( iFlags & CAknPreviewPopUpController::EPermanentMode ) )
   675         {
   677         {
   676         iCloseMenu = ETrue; 
   678         if ( !( iFlags & CAknPreviewPopUpController::EConsumeKeys ) )
   677         iController.HidePopUp();
   679             {
       
   680             iCloseMenu = ETrue;
       
   681             iController.HidePopUp();
       
   682             }
       
   683         else
       
   684             {
       
   685             if ( aType == EEventKey || aType == EEventKeyUp )
       
   686                 {
       
   687                 iCloseMenu = ETrue;
       
   688                 iController.HidePopUp();
       
   689 
       
   690                 ret = EKeyWasConsumed;
       
   691                 }
       
   692             }
   678         }
   693         }
   679 
   694 
   680     if ( CapturesPointer() )
   695     if ( CapturesPointer() )
   681         {
   696         {
   682         SetPointerCapture( EFalse );
   697         SetPointerCapture( EFalse );
   683         }
   698         }
   684 
   699 
   685     return EKeyWasNotConsumed;
   700     return ret;
   686     }
   701     }
   687     
   702     
   688 // -----------------------------------------------------------------------------
   703 // -----------------------------------------------------------------------------
   689 // CAknPreviewPopUp::MopSupplyObject
   704 // CAknPreviewPopUp::MopSupplyObject
   690 // -----------------------------------------------------------------------------
   705 // -----------------------------------------------------------------------------
   850 
   865 
   851 // -----------------------------------------------------------------------------
   866 // -----------------------------------------------------------------------------
   852 // CAknPreviewPopUp::CleanLocalRef
   867 // CAknPreviewPopUp::CleanLocalRef
   853 // -----------------------------------------------------------------------------
   868 // -----------------------------------------------------------------------------
   854 //
   869 //
   855 void CAknPreviewPopUp::CleanLocalRef( TAny* any )
   870 void CAknPreviewPopUp::CleanLocalRef( TAny* aParam )
   856     {
   871     {
   857     static_cast<CAknPreviewPopUp*>( any )->iIsDeleted = NULL;
   872     static_cast<CAknPreviewPopUp*>( aParam )->iIsDeleted = NULL;
   858     }
   873     }
   859 
   874 
   860 //  End of File  
   875 //  End of File  
   861 
   876