equal
deleted
inserted
replaced
528 EXPORT_C void ASwtControlBase::HandleHighlightChange() |
528 EXPORT_C void ASwtControlBase::HandleHighlightChange() |
529 { |
529 { |
530 // Do nothing here. Inherit where needed. |
530 // Do nothing here. Inherit where needed. |
531 } |
531 } |
532 |
532 |
533 EXPORT_C void ASwtControlBase::PrepareForTraverse() |
|
534 { |
|
535 // Do nothing here. Inherit where needed. |
|
536 } |
|
537 |
|
538 TRect ASwtControlBase::ClipToVisibleRect(const TRect& aRect) const |
533 TRect ASwtControlBase::ClipToVisibleRect(const TRect& aRect) const |
539 { |
534 { |
540 // WINDOW COORDINATES! |
535 // WINDOW COORDINATES! |
541 TRect rect = aRect; |
536 TRect rect = aRect; |
542 MSwtComposite* composite = iParent; |
537 MSwtComposite* composite = iParent; |
802 if (commandArranger->DoClearOperationL()) |
797 if (commandArranger->DoClearOperationL()) |
803 { |
798 { |
804 return EKeyWasConsumed; |
799 return EKeyWasConsumed; |
805 } |
800 } |
806 } |
801 } |
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 |
|
819 else if (!AknLayoutUtils::MSKEnabled() || |
802 else if (!AknLayoutUtils::MSKEnabled() || |
820 (activeTopShell && activeTopShell->FullScreenMode())) |
803 (activeTopShell && activeTopShell->FullScreenMode())) |
821 { |
804 { |
822 // When the selection key is pressed, the default command is called otherwise |
805 // When the selection key is pressed, the default command is called otherwise |
823 // a menu with the OK and SELECT commands is displayed |
806 // a menu with the OK and SELECT commands is displayed |
829 { |
812 { |
830 return EKeyWasConsumed; |
813 return EKeyWasConsumed; |
831 } |
814 } |
832 } |
815 } |
833 } |
816 } |
834 #endif //RD_JAVA_S60_RELEASE_9_2 |
|
835 else if (aKeyEvent.iCode == EKeyEnter && !IsKeyUsed(EKeyEnter)) |
817 else if (aKeyEvent.iCode == EKeyEnter && !IsKeyUsed(EKeyEnter)) |
836 { |
818 { |
837 if (commandArranger->HandleEnterKeyL()) |
819 if (commandArranger->HandleEnterKeyL()) |
838 { |
820 { |
839 return EKeyWasConsumed; |
821 return EKeyWasConsumed; |