Revision: 7494
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7494&view=rev
Author:   hofman
Date:     2011-09-17 21:51:00 +0000 (Sat, 17 Sep 2011)
Log Message:
-----------
move focus through favorite colors control rotating

Modified Paths:
--------------
    trunk/SKColorSwatch.m

Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m       2011-09-16 12:25:11 UTC (rev 7493)
+++ trunk/SKColorSwatch.m       2011-09-17 21:51:00 UTC (rev 7494)
@@ -271,14 +271,14 @@
 
 - (void)moveRight:(NSEvent *)theEvent {
     if (++focusedIndex >= (NSInteger)[colors count])
-        focusedIndex = [colors count] - 1;
+        focusedIndex = 0;
     [self setKeyboardFocusRingNeedsDisplayInRect:[self bounds]];
     NSAccessibilityPostNotification(self, 
NSAccessibilityFocusedUIElementChangedNotification);
 }
 
 - (void)moveLeft:(NSEvent *)theEvent {
     if (--focusedIndex < 0)
-        focusedIndex = 0;
+        focusedIndex = [colors count] - 1;
     [self setKeyboardFocusRingNeedsDisplayInRect:[self bounds]];
     NSAccessibilityPostNotification(self, 
NSAccessibilityFocusedUIElementChangedNotification);
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to