diff -r aabf2c525e0f -r 9f56a4e1b8ab uifw/EikStd/dlgsrc/EIKDIALG.CPP --- a/uifw/EikStd/dlgsrc/EIKDIALG.CPP Fri Mar 12 15:43:43 2010 +0200 +++ b/uifw/EikStd/dlgsrc/EIKDIALG.CPP Mon Mar 15 12:41:34 2010 +0200 @@ -1759,12 +1759,17 @@ if (button) { - if (button->IsDimmed() || !button->IsVisible()) - { + TBool animateCommand = ( !button->IsDimmed() && button->IsVisible() ); + + if ( !animateCommand && buttonId != EEikBidCancel ) + { _AKNTRACE_FUNC_EXIT; - return EKeyWasNotConsumed; - } - buttonGroupContainer.AnimateCommand(buttonId); + return EKeyWasNotConsumed; + } + else if ( animateCommand ) + { + buttonGroupContainer.AnimateCommand( buttonId ); + } } if (button || buttonId==EEikBidCancel || buttonId==EEikBidOk)