Revision: 16326
http://sourceforge.net/p/skim-app/code/16326
Author: hofman
Date: 2026-05-31 08:52:09 +0000 (Sun, 31 May 2026)
Log Message:
-----------
key equivalents for moving reading bar by line, a user reported keyDown not
working for it
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-05-31 08:47:29 UTC (rev 16325)
+++ trunk/SKPDFView.m 2026-05-31 08:52:09 UTC (rev 16326)
@@ -1649,6 +1649,20 @@
}
}
+- (BOOL)performKeyEquivalent:(NSEvent *)theEvent {
+ if ([self hasReadingBar] == NO)
+ return NO;
+ unichar eventChar = [theEvent firstCharacter];
+ if (IS_UP_DOWN_ARROW(eventChar) == NO)
+ return NO;
+ NSEventModifierFlags modifiers = [theEvent deviceIndependentModifierFlags]
& ~NSEventModifierFlagNumericPad & ~NSEventModifierFlagFunction;
+ if (modifiers == moveReadingBarModifiers) {
+ [self doMoveReadingBarForKey:eventChar];
+ return YES;
+ }
+ return NO;
+}
+
#define IS_TABLET_EVENT(theEvent, deviceType) (([theEvent subtype] ==
NSEventSubtypeTabletProximity || [theEvent subtype] ==
NSEventSubtypeTabletPoint) && [NSEvent currentPointingDeviceType] == deviceType)
- (void)mouseDown:(NSEvent *)theEvent{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit