extras/calcsoft/src/CalcFunc.cpp
branchRCL_3
changeset 13 82ca176301de
parent 0 3ee3dfdd8d69
child 16 99b535de1dda
--- a/extras/calcsoft/src/CalcFunc.cpp	Tue May 11 16:14:55 2010 +0300
+++ b/extras/calcsoft/src/CalcFunc.cpp	Tue May 25 12:44:02 2010 +0300
@@ -1150,9 +1150,12 @@
         TRAP_IGNORE(button->OfferKeyEventL(aKeyEvent,aType));
 	    state->SetFlags(EnNormal);
      	}
-    button->SetFocus( EFalse, EDrawNow );      
-    button = iButtons[aNewId];        
-    button->SetFocus( ETrue, EDrawNow );
+    if( aOldId != aNewId )
+    	{
+        button->SetFocus( EFalse, EDrawNow );      
+        button = iButtons[aNewId];        
+        button->SetFocus( ETrue, EDrawNow );
+    	}
     }
 
 // ---------------------------------------------------------