Revision: 2781 http://skim-app.svn.sourceforge.net/skim-app/?rev=2781&view=rev Author: hofman Date: 2007-08-30 05:25:13 -0700 (Thu, 30 Aug 2007)
Log Message: ----------- Catch right-click for previous page in presentation mode in the full screen window rather than at application level. Modified Paths: -------------- trunk/SKApplication.m trunk/SKFullScreenWindow.m Modified: trunk/SKApplication.m =================================================================== --- trunk/SKApplication.m 2007-08-30 12:17:29 UTC (rev 2780) +++ trunk/SKApplication.m 2007-08-30 12:25:13 UTC (rev 2781) @@ -79,12 +79,6 @@ [target performSelector:@selector(magnifyWheel:) withObject:anEvent]; return; } - } else if ([anEvent type] == NSRightMouseDown || ([anEvent type] == NSLeftMouseDown && ([anEvent modifierFlags] & NSControlKeyMask))) { - id controller = [[self mainWindow] windowController]; - if ([controller respondsToSelector:@selector(isPresentation)] && [controller isPresentation]) { - [controller doGoToPreviousPage:self]; - return; - } } [super sendEvent:anEvent]; } Modified: trunk/SKFullScreenWindow.m =================================================================== --- trunk/SKFullScreenWindow.m 2007-08-30 12:17:29 UTC (rev 2780) +++ trunk/SKFullScreenWindow.m 2007-08-30 12:25:13 UTC (rev 2781) @@ -86,8 +86,15 @@ } - (void)sendEvent:(NSEvent *)theEvent { - if ([theEvent type] == NSLeftMouseDown || [theEvent type] == NSRightMouseDown) + if ([theEvent type] == NSLeftMouseDown || [theEvent type] == NSRightMouseDown) { [[SKPDFHoverWindow sharedHoverWindow] orderOut:nil]; + + SKMainWindowController *wc = (SKMainWindowController *)[self windowController]; + if ([wc isPresentation] && ([theEvent type] == NSRightMouseDown || ([theEvent modifierFlags] & NSControlKeyMask))) { + [wc doGoToPreviousPage:self]; + return; + } + } [super sendEvent:theEvent]; } 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