uifw/EikStd/dlgsrc/EIKDIALG.CPP
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 4 8ca85d2f0db7
child 15 08e69e956a8c
--- 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)