diff options
Diffstat (limited to 'Framework/MASShortcutMonitor.m')
| -rw-r--r-- | Framework/MASShortcutMonitor.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Framework/MASShortcutMonitor.m b/Framework/MASShortcutMonitor.m index d175b82..cb89ce1 100644 --- a/Framework/MASShortcutMonitor.m +++ b/Framework/MASShortcutMonitor.m @@ -71,13 +71,13 @@ static OSStatus MASCarbonEventCallback(EventHandlerCallRef, EventRef, void*); - (void) handleEvent: (EventRef) event { - if (GetEventClass(event) != kEventClassKeyboard) { + if (GetEventClass(event) != kEventClassKeyboard) { return; } - EventHotKeyID hotKeyID; - OSStatus status = GetEventParameter(event, kEventParamDirectObject, typeEventHotKeyID, NULL, sizeof(hotKeyID), NULL, &hotKeyID); - if (status != noErr || hotKeyID.signature != MASHotKeySignature) { + EventHotKeyID hotKeyID; + OSStatus status = GetEventParameter(event, kEventParamDirectObject, typeEventHotKeyID, NULL, sizeof(hotKeyID), NULL, &hotKeyID); + if (status != noErr || hotKeyID.signature != MASHotKeySignature) { return; } |
