aboutsummaryrefslogtreecommitdiffstats
path: root/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'main.m')
-rw-r--r--main.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.m b/main.m
index 6390483..7b54de8 100644
--- a/main.m
+++ b/main.m
@@ -22,6 +22,16 @@ int main(int argc, const char * argv[]) {
NSLog(@"Error registering hotkey");
}
+ if (
+ ![c registerHotKeyWithKeyCode:kVK_F8
+ modifierFlags:0
+ target:invert
+ action:@selector(toggleInvertColors:)
+ object:nil]
+ ) {
+ NSLog(@"Error registering hotkey");
+ }
+
[NSApp run];
return 0;