Skip to content

Commit

Permalink
Consistently use tabs instead of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
janten committed Aug 25, 2017
1 parent 7546c6f commit d4a456f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions keypad-layout/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ @implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[self installStatusBarIcon];
self.wildcardRect = [self rectFromCenterW:false H:false];
self.trustTimer = [NSTimer scheduledTimerWithTimeInterval:0.1
target:self
selector:@selector(installHotkeys)
userInfo:nil
repeats:YES];
self.trustTimer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(installHotkeys) userInfo:nil repeats:YES];
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
Expand Down Expand Up @@ -69,9 +65,9 @@ - (void)installHotkeys {
}

CGEventRef hotkeyCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) {
const CGEventFlags ignoredFlags = NX_NUMERICPADMASK | NX_NONCOALSESCEDMASK;
const CGEventFlags neededFlags = NX_CONTROLMASK | 0x00000001;
CGEventFlags flags = CGEventGetFlags(event) & ~ignoredFlags;
const CGEventFlags ignoredFlags = NX_NUMERICPADMASK | NX_NONCOALSESCEDMASK;
const CGEventFlags neededFlags = NX_CONTROLMASK | 0x00000001;
CGEventFlags flags = CGEventGetFlags(event) & ~ignoredFlags;
AppDelegate *self = (__bridge AppDelegate *)refcon;

if ((type == NX_KEYDOWN) && (flags == neededFlags)) {
Expand All @@ -86,9 +82,9 @@ CGEventRef hotkeyCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef ev
return NULL;
}

}
}

self.rect = NSZeroRect;
self.rect = NSZeroRect;
return event;
}

Expand Down
4 changes: 2 additions & 2 deletions keypad-layout/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.5</string>
<string>1.6</string>
<key>CFBundleVersion</key>
<string>11</string>
<string>15</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit d4a456f

Please sign in to comment.