javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcontrolbase.cpp
branchRCL_3
changeset 77 7cee158cb8cd
parent 66 2455ef1f5bbc
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
   802             if (commandArranger->DoClearOperationL())
   802             if (commandArranger->DoClearOperationL())
   803             {
   803             {
   804                 return EKeyWasConsumed;
   804                 return EKeyWasConsumed;
   805             }
   805             }
   806         }
   806         }
       
   807 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   808         // On 9.2 MSK is never shown, so we have to always handle
       
   809         // the Selection key
       
   810         else if (aKeyEvent.iCode == EKeyOK && !IsKeyUsed(EKeyOK)
       
   811                  && commandArranger->IsContextSensitiveOperationSet())
       
   812         {
       
   813             if (commandArranger->DoContextSensitiveOperationL())
       
   814             {
       
   815                 return EKeyWasConsumed;
       
   816             }
       
   817         }
       
   818 #else
   807         else if (!AknLayoutUtils::MSKEnabled() ||
   819         else if (!AknLayoutUtils::MSKEnabled() ||
   808                  (activeTopShell && activeTopShell->FullScreenMode()))
   820                  (activeTopShell && activeTopShell->FullScreenMode()))
   809         {
   821         {
   810             // When the selection key is pressed, the default command is called otherwise
   822             // When the selection key is pressed, the default command is called otherwise
   811             // a menu with the OK and SELECT commands is displayed
   823             // a menu with the OK and SELECT commands is displayed
   817                 {
   829                 {
   818                     return EKeyWasConsumed;
   830                     return EKeyWasConsumed;
   819                 }
   831                 }
   820             }
   832             }
   821         }
   833         }
       
   834 #endif //RD_JAVA_S60_RELEASE_9_2
   822         else if (aKeyEvent.iCode == EKeyEnter && !IsKeyUsed(EKeyEnter))
   835         else if (aKeyEvent.iCode == EKeyEnter && !IsKeyUsed(EKeyEnter))
   823         {
   836         {
   824             if (commandArranger->HandleEnterKeyL())
   837             if (commandArranger->HandleEnterKeyL())
   825             {
   838             {
   826                 return EKeyWasConsumed;
   839                 return EKeyWasConsumed;