From 258fed65113a18f84d6800ef8f766243e0eb28f7 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 24 Nov 2020 08:04:30 +1100 Subject: [PATCH] fix: wrong variable type --- mac/Keyman4MacIM/Keyman4MacIM/KMInputMethodAppDelegate.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mac/Keyman4MacIM/Keyman4MacIM/KMInputMethodAppDelegate.m b/mac/Keyman4MacIM/Keyman4MacIM/KMInputMethodAppDelegate.m index 573fc31d25..d53e859db8 100644 --- a/mac/Keyman4MacIM/Keyman4MacIM/KMInputMethodAppDelegate.m +++ b/mac/Keyman4MacIM/Keyman4MacIM/KMInputMethodAppDelegate.m @@ -145,7 +145,7 @@ id _lastServerWithOSKShowing = nil; // options.debug = @YES; }]; - [SentrySDK captureMessage:@"Starting Keyman [test message]"]; + // [SentrySDK captureMessage:@"Starting Keyman [test message]"]; } #ifdef USE_ALERT_SHOW_HELP_TO_FORCE_EASTER_EGG_CRASH_FROM_ENGINE @@ -271,6 +271,8 @@ CGEventRef eventTapFunction(CGEventTapProxy proxy, CGEventType type, CGEventRef switch (type) { case kCGEventFlagsChanged: + if (appDelegate.debugMode) + NSLog(@"System Event: flags changed: %x", (int) sysEvent.modifierFlags); appDelegate.currentModifierFlags = sysEvent.modifierFlags; if (appDelegate.currentModifierFlags & NSEventModifierFlagCommand) { appDelegate.contextChangingEventDetected = YES; @@ -1064,7 +1066,7 @@ CGEventRef eventTapFunction(CGEventTapProxy proxy, CGEventType type, CGEventRef - (void)downloadKeyboardFromKeyboardId:(NSString *)keyboardId { KeymanVersionInfo keymanVersionInfo = [self versionInfo]; - NSString* url = [NSURL URLWithString:[NSString stringWithFormat:@"https://%@/go/package/download/%@?platform=macos&tier=%@", + NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@"https://%@/go/package/download/%@?platform=macos&tier=%@", keymanVersionInfo.keymanCom, keyboardId, keymanVersionInfo.tier]]; //&bcp47=%@&update=0 _downloadFilename = [NSString stringWithFormat:@"%@.kmp", keyboardId]; [self downloadKeyboardFromURL:url];