Revision: 3172 http://skim-app.svn.sourceforge.net/skim-app/?rev=3172&view=rev Author: hofman Date: 2007-11-07 03:13:41 -0800 (Wed, 07 Nov 2007)
Log Message: ----------- Remove selection for context menu in pdfview when not in text tool mode. Apparently pdfview on Leopard selects before calling the context menu, but a selection is wrong in other tool modes. Modified Paths: -------------- trunk/SKPDFView.m Modified: trunk/SKPDFView.m =================================================================== --- trunk/SKPDFView.m 2007-11-07 11:07:27 UTC (rev 3171) +++ trunk/SKPDFView.m 2007-11-07 11:13:41 UTC (rev 3172) @@ -1163,6 +1163,9 @@ } - (NSMenu *)menuForEvent:(NSEvent *)theEvent { + if (toolMode != SKTextToolMode && [self currentSelection]) + [self setCurrentSelection:nil]; + NSMenu *menu = [super menuForEvent:theEvent]; NSMenu *submenu; NSMenuItem *item; 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit