Revision: 6730
http://skim-app.svn.sourceforge.net/skim-app/?rev=6730&view=rev
Author: hofman
Date: 2010-08-24 17:10:40 +0000 (Tue, 24 Aug 2010)
Log Message:
-----------
make pdfview first responder when closing side pane with first responder
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2010-08-23 18:53:20 UTC (rev
6729)
+++ trunk/SKMainWindowController_Actions.m 2010-08-24 17:10:40 UTC (rev
6730)
@@ -64,6 +64,7 @@
#import "NSWindowController_SKExtensions.h"
#import "NSPointerArray_SKExtensions.h"
#import "NSDocument_SKExtensions.h"
+#import "NSResponder_SKExtensions.h"
@interface SKMainWindowController (SKPrivateUI)
@@ -860,6 +861,8 @@
} else {
CGFloat position = [splitView minPossiblePositionOfDividerAtIndex:0];
if ([self leftSidePaneIsOpen]) {
+ if ([[[self window] firstResponder]
isDescendantOf:leftSideContentView])
+ [[self window] makeFirstResponder:pdfView];
lastLeftSidePaneWidth = NSWidth([leftSideContentView frame]);
} else {
if(lastLeftSidePaneWidth <= 0.0)
@@ -891,6 +894,8 @@
} else {
CGFloat position = [splitView maxPossiblePositionOfDividerAtIndex:1];
if ([self rightSidePaneIsOpen]) {
+ if ([[[self window] firstResponder]
isDescendantOf:rightSideContentView])
+ [[self window] makeFirstResponder:pdfView];
lastRightSidePaneWidth = NSWidth([rightSideContentView frame]);
} else {
if(lastRightSidePaneWidth <= 0.0)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit