equal
deleted
inserted
replaced
1757 CEikButtonGroupContainer& buttonGroupContainer = ButtonGroupContainer(); |
1757 CEikButtonGroupContainer& buttonGroupContainer = ButtonGroupContainer(); |
1758 CCoeControl* button = buttonGroupContainer.ControlOrNull(buttonId); |
1758 CCoeControl* button = buttonGroupContainer.ControlOrNull(buttonId); |
1759 |
1759 |
1760 if (button) |
1760 if (button) |
1761 { |
1761 { |
1762 if (button->IsDimmed() || !button->IsVisible()) |
1762 TBool animateCommand = ( !button->IsDimmed() && button->IsVisible() ); |
1763 { |
1763 |
|
1764 if ( !animateCommand && buttonId != EEikBidCancel ) |
|
1765 { |
1764 _AKNTRACE_FUNC_EXIT; |
1766 _AKNTRACE_FUNC_EXIT; |
1765 return EKeyWasNotConsumed; |
1767 return EKeyWasNotConsumed; |
1766 } |
1768 } |
1767 buttonGroupContainer.AnimateCommand(buttonId); |
1769 else if ( animateCommand ) |
|
1770 { |
|
1771 buttonGroupContainer.AnimateCommand( buttonId ); |
|
1772 } |
1768 } |
1773 } |
1769 |
1774 |
1770 if (button || buttonId==EEikBidCancel || buttonId==EEikBidOk) |
1775 if (button || buttonId==EEikBidCancel || buttonId==EEikBidOk) |
1771 { |
1776 { |
1772 TryExitL(buttonId); |
1777 TryExitL(buttonId); |