Revision: 3708 http://skim-app.svn.sourceforge.net/skim-app/?rev=3708&view=rev Author: hofman Date: 2008-04-11 05:03:44 -0700 (Fri, 11 Apr 2008)
Log Message: ----------- Make suer the insertion highlight gets cleared at the end of an event. Modified Paths: -------------- trunk/SKColorSwatch.m Modified: trunk/SKColorSwatch.m =================================================================== --- trunk/SKColorSwatch.m 2008-04-11 11:24:34 UTC (rev 3707) +++ trunk/SKColorSwatch.m 2008-04-11 12:03:44 UTC (rev 3708) @@ -203,6 +203,7 @@ { if ([self isEnabled]) { highlightedIndex = -1; + insertionIndex = -1; [self setNeedsDisplay:YES]; } @@ -233,6 +234,7 @@ case NSLeftMouseUp: if ([self isEnabled]) { highlightedIndex = -1; + insertionIndex = -1; clickedIndex = i; [self setNeedsDisplay:YES]; [self sendAction:[self action] to:[self target]]; @@ -249,6 +251,7 @@ - (void)unhighlight { highlightedIndex = -1; + insertionIndex = -1; [self setKeyboardFocusRingNeedsDisplayInRect:[self bounds]]; [self setNeedsDisplay:YES]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit