javauis/lcdui_akn/lcdui/src/CMIDDateFieldItem.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
   490                 return EKeyWasConsumed;
   490                 return EKeyWasConsumed;
   491             }
   491             }
   492             // Show Menu or activate one command
   492             // Show Menu or activate one command
   493             else
   493             else
   494             {
   494             {
   495                 TInt numScreenOrHelpCommands = displayable.NumCommandsForScreenOrHelpOptionsMenu();
       
   496 
       
   497                 // Active Command Show Menu
   495                 // Active Command Show Menu
   498                 // if ( cntOpt > 1 ) will run menu, else execute ProcessCommandL( CommandOffset )
   496                 // if ( cntOpt > 1 ) will run menu, else execute ProcessCommandL( CommandOffset )
   499                 if (cntOpt > 1)
   497                 if (cntOpt > 1)
   500                 {
   498                 {
   501                     displayable.MenuHandler()->ShowMenuL(CMIDMenuHandler::EOkMenu);
   499                     displayable.MenuHandler()->ShowMenuL(CMIDMenuHandler::EOkMenu);
   502                     return EKeyWasConsumed;
       
   503                 }
       
   504                 else if (cntOpt == 0 && numScreenOrHelpCommands > 1)
       
   505                 {
       
   506                     // If there is more than one screen command on form
       
   507                     // and there is no ok/item commands then show menu
       
   508                     displayable.MenuHandler()->ShowMenuL(CMIDMenuHandler::EOptionsMenu);
       
   509                     return EKeyWasConsumed;
   500                     return EKeyWasConsumed;
   510                 }
   501                 }
   511                 else if (command && command->CommandType() != MMIDCommand::EBack &&
   502                 else if (command && command->CommandType() != MMIDCommand::EBack &&
   512                          command->CommandType() != MMIDCommand::ECancel)
   503                          command->CommandType() != MMIDCommand::ECancel)
   513                 {
   504                 {
   524     }
   515     }
   525 
   516 
   526     //
   517     //
   527     // End Enter Key
   518     // End Enter Key
   528     //
   519     //
   529     if (code == EKeyDownArrow || code == EKeyUpArrow ||
   520     if (code == EKeyDownArrow || code == EKeyUpArrow || code == EKeyApplication0)
   530             (code == EKeyApplication0 || aKeyEvent.iScanCode == EStdKeyApplication0))
       
   531         return EKeyWasNotConsumed;
   521         return EKeyWasNotConsumed;
   532 
   522 
   533     if (!iInitialised && aType == EEventKey && !CMIDUtils::IgnoreKeyEvent(aKeyEvent.iCode))
   523     if (!iInitialised && aType == EEventKey && !CMIDUtils::IgnoreKeyEvent(aKeyEvent.iCode))
   534     {
   524     {
   535         if (code == EKeyBackspace)
   525         if (code == EKeyBackspace)