Revision: 3581
http://skim-app.svn.sourceforge.net/skim-app/?rev=3581&view=rev
Author: hofman
Date: 2008-03-30 13:59:58 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Don't change page through unmodified arrow keys in normal or fullscreen mode,
as it is used to move the active note.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-03-30 16:38:07 UTC (rev 3580)
+++ trunk/SKPDFView.m 2008-03-30 20:59:58 UTC (rev 3581)
@@ -906,15 +906,15 @@
unichar eventChar = [characters length] > 0 ? [characters
characterAtIndex:0] : 0;
unsigned int modifiers = [theEvent modifierFlags] & (NSCommandKeyMask |
NSAlternateKeyMask | NSShiftKeyMask | NSControlKeyMask);
- if ([[[self documentView] enclosingScrollView] hasHorizontalScroller] ==
NO &&
- (eventChar == NSRightArrowFunctionKey) && (modifiers == 0)) {
- [self goToNextPage:self];
- } else if ([[[self documentView] enclosingScrollView]
hasHorizontalScroller] == NO &&
- (eventChar == NSLeftArrowFunctionKey) && (modifiers == 0)) {
- [self goToPreviousPage:self];
- } else if (hasNavigation && autohidesCursor) {
+ if (hasNavigation && autohidesCursor) {
// Presentation mode
- if ((eventChar == 'p') && (modifiers == 0)) {
+ if ([[[self documentView] enclosingScrollView] hasHorizontalScroller]
== NO &&
+ (eventChar == NSRightArrowFunctionKey) && (modifiers == 0)) {
+ [self goToNextPage:self];
+ } else if ([[[self documentView] enclosingScrollView]
hasHorizontalScroller] == NO &&
+ (eventChar == NSLeftArrowFunctionKey) && (modifiers == 0))
{
+ [self goToPreviousPage:self];
+ } else if ((eventChar == 'p') && (modifiers == 0)) {
[(SKMainWindowController *)[[self window] windowController]
toggleLeftSidePane:self];
} else if ((eventChar == 'a') && (modifiers == 0)) {
[(SKMainWindowController *)[[self window] windowController]
toggleAutoActualSize:self];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit