javauis/lcdui_akn/lcdui/src/CMIDDateFieldItem.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
--- a/javauis/lcdui_akn/lcdui/src/CMIDDateFieldItem.cpp	Wed Sep 15 12:05:25 2010 +0300
+++ b/javauis/lcdui_akn/lcdui/src/CMIDDateFieldItem.cpp	Wed Oct 13 14:23:59 2010 +0300
@@ -492,8 +492,6 @@
             // Show Menu or activate one command
             else
             {
-                TInt numScreenOrHelpCommands = displayable.NumCommandsForScreenOrHelpOptionsMenu();
-
                 // Active Command Show Menu
                 // if ( cntOpt > 1 ) will run menu, else execute ProcessCommandL( CommandOffset )
                 if (cntOpt > 1)
@@ -501,13 +499,6 @@
                     displayable.MenuHandler()->ShowMenuL(CMIDMenuHandler::EOkMenu);
                     return EKeyWasConsumed;
                 }
-                else if (cntOpt == 0 && numScreenOrHelpCommands > 1)
-                {
-                    // If there is more than one screen command on form
-                    // and there is no ok/item commands then show menu
-                    displayable.MenuHandler()->ShowMenuL(CMIDMenuHandler::EOptionsMenu);
-                    return EKeyWasConsumed;
-                }
                 else if (command && command->CommandType() != MMIDCommand::EBack &&
                          command->CommandType() != MMIDCommand::ECancel)
                 {
@@ -526,8 +517,7 @@
     //
     // End Enter Key
     //
-    if (code == EKeyDownArrow || code == EKeyUpArrow ||
-            (code == EKeyApplication0 || aKeyEvent.iScanCode == EStdKeyApplication0))
+    if (code == EKeyDownArrow || code == EKeyUpArrow || code == EKeyApplication0)
         return EKeyWasNotConsumed;
 
     if (!iInitialised && aType == EEventKey && !CMIDUtils::IgnoreKeyEvent(aKeyEvent.iCode))