Revision: 15146 http://sourceforge.net/p/skim-app/code/15146 Author: hofman Date: 2025-05-03 14:38:42 +0000 (Sat, 03 May 2025) Log Message: ----------- use a lot of shortcuts though keyDowwn for page navigation in presentation view
Modified Paths: -------------- trunk/SKPresentationView.m Modified: trunk/SKPresentationView.m =================================================================== --- trunk/SKPresentationView.m 2025-05-03 09:17:24 UTC (rev 15145) +++ trunk/SKPresentationView.m 2025-05-03 14:38:42 UTC (rev 15146) @@ -424,13 +424,21 @@ NSUInteger modifiers = [theEvent deviceIndependentModifierFlags] & ~NSEventModifierFlagCapsLock; NSUInteger standardModifiers = modifiers & ~NSEventModifierFlagNumericPad & ~NSEventModifierFlagFunction; - if ((eventChar == NSRightArrowFunctionKey || eventChar == NSDownArrowFunctionKey || eventChar == NSPageDownFunctionKey) && (standardModifiers == 0)) { + if (((eventChar == NSDownArrowFunctionKey) && ((standardModifiers & ~NSEventModifierFlagOption) == 0)) || + ((eventChar == NSRightArrowFunctionKey) && ((standardModifiers & ~NSEventModifierFlagCommand) == 0)) || + ((eventChar == NSPageDownFunctionKey) && (standardModifiers == 0))) { [self goToNextPage:self]; - } else if ((eventChar == NSLeftArrowFunctionKey || eventChar == NSUpArrowFunctionKey || eventChar == NSPageUpFunctionKey) && (standardModifiers == 0)) { + } else if (((eventChar == NSUpArrowFunctionKey) && ((standardModifiers & ~NSEventModifierFlagOption) == 0)) || + ((eventChar == NSLeftArrowFunctionKey) && ((standardModifiers & ~NSEventModifierFlagCommand) == 0)) || + ((eventChar == NSPageUpFunctionKey) && (standardModifiers == 0))) { [self goToPreviousPage:self]; - } else if ((eventChar == NSHomeFunctionKey) && (standardModifiers == 0)) { + } else if (((eventChar == NSLeftArrowFunctionKey) && (standardModifiers == NSEventModifierFlagOption)) || + ((eventChar == NSUpArrowFunctionKey) && (standardModifiers == NSEventModifierFlagCommand)) || + ((eventChar == NSHomeFunctionKey) && (standardModifiers == 0))) { [self goToFirstPage:self]; - } else if ((eventChar == NSEndFunctionKey) && (standardModifiers == 0)) { + } else if (((eventChar == NSRightArrowFunctionKey) && (standardModifiers == NSEventModifierFlagOption)) || + ((eventChar == NSDownArrowFunctionKey) && (standardModifiers == NSEventModifierFlagCommand)) || + ((eventChar == NSEndFunctionKey && standardModifiers == 0))) { [self goToLastPage:self]; } else if ((eventChar == 'p') && (modifiers == 0)) { [self tryToPerform:@selector(toggleOverview:) with:self]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit