commondrm/drmrightsmanagerui/src/DRMRightsMgrAppUi.cpp
branchRCL_3
changeset 88 c1bd57533c56
parent 81 e9463401011b
equal deleted inserted replaced
81:e9463401011b 88:c1bd57533c56
    33 #include <barsread.h>  // for resource reader
    33 #include <barsread.h>  // for resource reader
    34 #include <centralrepository.h>
    34 #include <centralrepository.h>
    35 #include <coeutils.h>
    35 #include <coeutils.h>
    36 #include <eikserverapp.h>
    36 #include <eikserverapp.h>
    37 
    37 
       
    38 
    38 #include <starterclient.h>
    39 #include <starterclient.h>
    39 
    40 
    40 // character conversions
    41 // character conversions
    41 #include <utf.h>
    42 #include <utf.h>
    42 
    43 
   217 TKeyResponse CDRMRightsMgrAppUi::HandleKeyEventL( const TKeyEvent& aKeyEvent,
   218 TKeyResponse CDRMRightsMgrAppUi::HandleKeyEventL( const TKeyEvent& aKeyEvent,
   218                                                   TEventCode /*aType*/ )
   219                                                   TEventCode /*aType*/ )
   219     {
   220     {
   220     TChar charCode( aKeyEvent.iCode );
   221     TChar charCode( aKeyEvent.iCode );
   221 
   222 
   222     if ( aKeyEvent.iScanCode ==  EStdKeyEnter )
   223     if ( charCode == EKeyEnter )
   223         // Default is to show details
   224         // Default is to show details
   224         {
   225         {
   225         TInt command = EAknSoftkeyClose;
   226         TInt command = EDRMRightsManagerCmdAppViewDet;
   226         HandleCommandL( command );
   227         HandleCommandL( command );
   227         return EKeyWasConsumed;
   228         return EKeyWasConsumed;
   228         }
   229         }
   229     else if ( charCode == EKeyLeftArrow || charCode == EKeyRightArrow
   230     else if ( charCode == EKeyLeftArrow || charCode == EKeyRightArrow
   230         || charCode == EKeyBackspace )
   231         || charCode == EKeyBackspace )
   252             Exit();
   253             Exit();
   253             break;
   254             break;
   254             }
   255             }
   255         case EAknSoftkeyClose:
   256         case EAknSoftkeyClose:
   256             {
   257             {
       
   258 
   257             if (server)
   259             if (server)
   258                 {
   260                 {
   259                 server->NotifyServerExit(EAknSoftkeyClose);
   261                 server->NotifyServerExit(EAknSoftkeyClose);
   260                 }
   262                 }
       
   263                 
   261             Exit();
   264             Exit();
   262             break;
   265             break;
   263             }    
   266             }    
   264         default:
   267         default:
   265             break;
   268             break;