mediasettings/mediasettingsapp/src/MPSettingsAppUi.cpp
branchRCL_3
changeset 14 8970fbd719ec
parent 10 ce5ada96ab30
equal deleted inserted replaced
13:112a725ff2c2 14:8970fbd719ec
    13 *
    13 *
    14 * Description:   Application UI class required by AVKON application architecture.*
    14 * Description:   Application UI class required by AVKON application architecture.*
    15 */
    15 */
    16 
    16 
    17 
    17 
    18 // Version : %version: 11 %
    18 // Version : %version: 12 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 #include    <MediaSettings.rsg>
    23 #include    <MediaSettings.rsg>
   299 TKeyResponse CMPSettingsAppUi::HandleKeyEventL(
   299 TKeyResponse CMPSettingsAppUi::HandleKeyEventL(
   300     const TKeyEvent& aKeyEvent, TEventCode aType)
   300     const TKeyEvent& aKeyEvent, TEventCode aType)
   301     {
   301     {
   302     MPX_DEBUG1(_L("#MS# CMPSettingsAppUi::HandleKeyEventL()"));
   302     MPX_DEBUG1(_L("#MS# CMPSettingsAppUi::HandleKeyEventL()"));
   303     // Check if the event should be handled by iTabGroup
   303     // Check if the event should be handled by iTabGroup
   304     if (aType != EEventKey ||  iNaviPane->Top() != iDecoratedTabGroup)
   304     if ( !iTabGroup || aType != EEventKey ||  iNaviPane->Top() != iDecoratedTabGroup)
   305         {
   305         {
   306         return EKeyWasNotConsumed;
   306         return EKeyWasNotConsumed;
   307         }
   307         }
   308 
   308 
   309     return iTabGroup->OfferKeyEventL(aKeyEvent, aType);
   309     return iTabGroup->OfferKeyEventL(aKeyEvent, aType);