equal
deleted
inserted
replaced
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 |
495 // Active Command Show Menu |
497 // Active Command Show Menu |
496 // if ( cntOpt > 1 ) will run menu, else execute ProcessCommandL( CommandOffset ) |
498 // if ( cntOpt > 1 ) will run menu, else execute ProcessCommandL( CommandOffset ) |
497 if (cntOpt > 1) |
499 if (cntOpt > 1) |
498 { |
500 { |
499 displayable.MenuHandler()->ShowMenuL(CMIDMenuHandler::EOkMenu); |
501 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); |
500 return EKeyWasConsumed; |
509 return EKeyWasConsumed; |
501 } |
510 } |
502 else if (command && command->CommandType() != MMIDCommand::EBack && |
511 else if (command && command->CommandType() != MMIDCommand::EBack && |
503 command->CommandType() != MMIDCommand::ECancel) |
512 command->CommandType() != MMIDCommand::ECancel) |
504 { |
513 { |
515 } |
524 } |
516 |
525 |
517 // |
526 // |
518 // End Enter Key |
527 // End Enter Key |
519 // |
528 // |
520 if (code == EKeyDownArrow || code == EKeyUpArrow || code == EKeyApplication0) |
529 if (code == EKeyDownArrow || code == EKeyUpArrow || |
|
530 (code == EKeyApplication0 || aKeyEvent.iScanCode == EStdKeyApplication0)) |
521 return EKeyWasNotConsumed; |
531 return EKeyWasNotConsumed; |
522 |
532 |
523 if (!iInitialised && aType == EEventKey && !CMIDUtils::IgnoreKeyEvent(aKeyEvent.iCode)) |
533 if (!iInitialised && aType == EEventKey && !CMIDUtils::IgnoreKeyEvent(aKeyEvent.iCode)) |
524 { |
534 { |
525 if (code == EKeyBackspace) |
535 if (code == EKeyBackspace) |
952 } |
962 } |
953 } |
963 } |
954 |
964 |
955 void CMIDDateFieldItem::UpdateTextColorsL() |
965 void CMIDDateFieldItem::UpdateTextColorsL() |
956 { |
966 { |
957 // Set color for content text according to item highlight |
|
958 // (logical color constants are defined in lcdui.h) |
|
959 if (iHighlighted) |
967 if (iHighlighted) |
960 { |
968 { |
961 // Text colour from skin - highlighted |
969 // Text colour from skin - highlighted |
962 iEditor->SetSkinTextColorL(KHighlightedItemTextColor); |
970 iEditor->SetSkinTextColorL(EAknsCIQsnTextColorsCG8); |
963 } |
971 } |
964 else |
972 else |
965 { |
973 { |
966 // Text colour from skin - unfocused |
974 // Text colour from skin - unfocused |
967 iEditor->SetSkinTextColorL(KNonHighlightedItemTextColor); |
975 iEditor->SetSkinTextColorL(EAknsCIQsnTextColorsCG6); |
968 } |
976 } |
969 } |
977 } |
970 |
978 |
971 // End of File |
979 // End of File |