equal
deleted
inserted
replaced
695 void CSwtButton::ProcessKeyEventL(const TKeyEvent& aKeyEvent, |
695 void CSwtButton::ProcessKeyEventL(const TKeyEvent& aKeyEvent, |
696 TEventCode aType) |
696 TEventCode aType) |
697 { |
697 { |
698 // Do not pass SKs to CAknButton as it will activate. |
698 // Do not pass SKs to CAknButton as it will activate. |
699 if (iButton && (aKeyEvent.iScanCode != EStdKeyDevice0 && aKeyEvent.iScanCode != EStdKeyDevice1)) |
699 if (iButton && (aKeyEvent.iScanCode != EStdKeyDevice0 && aKeyEvent.iScanCode != EStdKeyDevice1)) |
700 { |
700 { |
701 TBool forward(EFalse); |
701 TBool forward(EFalse); |
702 if ((iStyle & KSwtStyleRadio) |
702 if ((iStyle & KSwtStyleRadio) |
703 && (GetParent()->Control()->CaptionedControlInterface() == NULL) |
703 && (GetParent()->Control()->CaptionedControlInterface() == NULL) |
704 && ((GetParent()->Control()->Style() & KSwtStyleNoRadioGroup) == 0)) |
704 && ((GetParent()->Control()->Style() & KSwtStyleNoRadioGroup) == 0)) |
705 { |
705 { |
710 } |
710 } |
711 else |
711 else |
712 { |
712 { |
713 forward = ETrue; |
713 forward = ETrue; |
714 } |
714 } |
715 |
715 |
716 if (forward) |
716 if (forward) |
717 { |
717 { |
718 if (aKeyEvent.iScanCode == EStdKeyNkpEnter) { |
718 if (aKeyEvent.iScanCode == EStdKeyNkpEnter) |
|
719 { |
719 // Workaround for CAknButton's inability to handle EKeyEnter correctly |
720 // Workaround for CAknButton's inability to handle EKeyEnter correctly |
720 TKeyEvent ev; |
721 TKeyEvent ev; |
721 ev.iCode = aKeyEvent.iCode; |
722 ev.iCode = aKeyEvent.iCode; |
722 ev.iModifiers = aKeyEvent.iModifiers; |
723 ev.iModifiers = aKeyEvent.iModifiers; |
723 ev.iRepeats = aKeyEvent.iRepeats; |
724 ev.iRepeats = aKeyEvent.iRepeats; |