File tree Expand file tree Collapse file tree 8 files changed +45
-16
lines changed
Images.xcassets/status_bar_icon_alternate.imageset Expand file tree Collapse file tree 8 files changed +45
-16
lines changed Original file line number Diff line number Diff line change 1- //
2- // AppDelegate.h
3- // / CodingKeys
4- //
5- // Created by Felix on 08.11.13.
6- //
7- //
8-
91#import < Cocoa/Cocoa.h>
102
113@interface AppDelegate : NSObject <NSApplicationDelegate >
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ - (void)setupStatusBarItem {
3232 self.statusItem = [[NSStatusBar systemStatusBar ] statusItemWithLength: NSVariableStatusItemLength ];
3333 self.statusItem .menu = self.statusMenu ;
3434 self.statusItem .image = [NSImage imageNamed: @" status_bar_icon" ];
35+ self.statusItem .alternateImage = [NSImage imageNamed: @" status_bar_icon_alternate" ];
3536 self.statusItem .highlightMode = YES ;
3637
3738 BOOL isLaunchedAtStartup = [[LaunchService sharedService ] isLaunchedAtStartup ];
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ - (void)parseKey {
6767 }
6868
6969 self.modifiers = modifiers;
70- self.carbonModifiers = carbonModifiers;
70+ self.carbonModifiers = carbonModifiers;
7171}
7272
7373- (NSArray *)mappedHotKeysForAppWithName : (NSString *)appName {
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ - (HotKey *)findHotKeyByID:(int)keyID {
8484static OSStatus hotKeyHandler (EventHandlerCallRef nextHandler,
8585 EventRef theEvent,
8686 void *userData) {
87+
8788 EventHotKeyID hotKeyID;
8889 GetEventParameter (theEvent,
8990 kEventParamDirectObject ,
Original file line number Diff line number Diff line change 1+ {
2+ "images" : [
3+ {
4+ "idiom" : " universal" ,
5+ "scale" : " 1x" ,
6+ "filename" : " status_bar_icon_alternate.png"
7+ }
8+ ],
9+ "info" : {
10+ "version" : 1 ,
11+ "author" : " xcode"
12+ }
13+ }
Original file line number Diff line number Diff line change 6666 }
6767 },
6868 {
69- "command" : " Find/Replace " ,
70- "key" : " ⌥ ⌘ F " ,
69+ "command" : " Toggle Comment " ,
70+ "key" : " ⌘ ⇧ 7 " ,
7171 "mapping" :
7272 {
73- "Xcode" : " ⌥ ⌘ F" ,
74- "Sublime Text" : " ⌥ ⌘ F" ,
75- "Eclipse" : " ⌘ F" ,
76- "Android Studio" : " ⌘ R"
73+ "Xcode" : " ⌘ /" ,
74+ "Sublime Text" : " ⌘ /" ,
75+ "Eclipse" : " ⌘ 7" ,
76+ "Android Studio" : " ⌘ /"
77+ }
78+ },
79+ {
80+ "command" : " Quick Open" ,
81+ "key" : " ⇧ ⌘ O" ,
82+ "mapping" :
83+ {
84+ "Xcode" : " ⇧ ⌘ O" ,
85+ "Sublime Text" : " ⌘ P" ,
86+ "Eclipse" : " ⇧ ⌘ T" ,
87+ "Android Studio" : " ⌘ O"
88+ }
89+ },
90+ {
91+ "command" : " Run" ,
92+ "key" : " ⌘ R" ,
93+ "mapping" :
94+ {
95+ "Xcode" : " ⌘ R" ,
96+ "Sublime Text" : " ⌘ B" ,
97+ "Eclipse" : " ⇧ ⌘ F11" ,
98+ "Android Studio" : " ⌃ R"
7799 }
78100 }
79- ]
101+ ]
You can’t perform that action at this time.
0 commit comments