Revision: 5217
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5217&view=rev
Author:   hofman
Date:     2009-02-28 18:08:54 +0000 (Sat, 28 Feb 2009)

Log Message:
-----------
draw keyboard focus ring on header popup

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

Modified: trunk/BDSKHeaderPopUpButtonCell.m
===================================================================
--- trunk/BDSKHeaderPopUpButtonCell.m   2009-02-25 15:19:12 UTC (rev 5216)
+++ trunk/BDSKHeaderPopUpButtonCell.m   2009-02-28 18:08:54 UTC (rev 5217)
@@ -167,6 +167,12 @@
        [path fill];
     [NSGraphicsContext restoreGraphicsState];
 
+    if ([[controlView window] isKeyWindow] && [[controlView window] 
firstResponder] == controlView) {
+               [NSGraphicsContext saveGraphicsState];
+               NSSetFocusRingStyle(NSFocusRingOnly);
+        [NSBezierPath fillRect:cellFrame];
+               [NSGraphicsContext restoreGraphicsState];
+    }
 }    
 
 - (void)setIndicatorImage:(NSImage *)image {


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to