Revision: 3228
http://skim-app.svn.sourceforge.net/skim-app/?rev=3228&view=rev
Author: hofman
Date: 2007-11-20 08:21:44 -0800 (Tue, 20 Nov 2007)
Log Message:
-----------
Hopefully really fix selection problem for contextual menu on Leopard.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2007-11-20 10:06:31 UTC (rev 3227)
+++ trunk/SKPDFView.m 2007-11-20 16:21:44 UTC (rev 3228)
@@ -1163,13 +1163,14 @@
}
- (NSMenu *)menuForEvent:(NSEvent *)theEvent {
- if (toolMode != SKTextToolMode && [self currentSelection])
- [self setCurrentSelection:nil];
-
NSMenu *menu = [super menuForEvent:theEvent];
NSMenu *submenu;
NSMenuItem *item;
+ // On Leopard the selection is automatically set. In some cases we never
want a selection though.
+ if ((hasNavigation && autohidesCursor) || (toolMode != SKTextToolMode &&
[self currentSelection]))
+ [self setCurrentSelection:nil];
+
if (hasNavigation && autohidesCursor)
return menu;
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit