Revision: 12558 http://sourceforge.net/p/skim-app/code/12558 Author: hofman Date: 2021-11-14 16:03:26 +0000 (Sun, 14 Nov 2021) Log Message: ----------- Combine checks for event characters and modifiers
Modified Paths: -------------- trunk/SKTextNoteEditor.m Modified: trunk/SKTextNoteEditor.m =================================================================== --- trunk/SKTextNoteEditor.m 2021-11-14 10:39:54 UTC (rev 12557) +++ trunk/SKTextNoteEditor.m 2021-11-14 16:03:26 UTC (rev 12558) @@ -330,7 +330,7 @@ - (void)keyDown:(NSEvent *)theEvent { unichar eventChar = [theEvent firstCharacter]; NSUInteger modifiers = [theEvent standardModifierFlags]; - if ((eventChar == '=' && (modifiers & ~(NSAlternateKeyMask | NSShiftKeyMask)) == NSControlKeyMask) || ((eventChar == NSUpArrowFunctionKey || eventChar == NSDownArrowFunctionKey || eventChar == NSLeftArrowFunctionKey || eventChar == NSRightArrowFunctionKey) && (modifiers == (NSAlternateKeyMask | NSControlKeyMask) || modifiers == (NSShiftKeyMask | NSControlKeyMask)))) + if ((eventChar == '=' || eventChar == NSUpArrowFunctionKey || eventChar == NSDownArrowFunctionKey || eventChar == NSLeftArrowFunctionKey || eventChar == NSRightArrowFunctionKey) && (modifiers & ~(NSAlternateKeyMask | NSShiftKeyMask)) == NSControlKeyMask) [[self nextResponder] keyDown:theEvent]; else [super keyDown:theEvent]; 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