Skip to content

Commit 09f8c83

Browse files
committed
Add new key mappings, add alternate image for status bar icon
1 parent 8a2e2f0 commit 09f8c83

File tree

8 files changed

+45
-16
lines changed

8 files changed

+45
-16
lines changed

CodingKeys/AppDelegate.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
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>

CodingKeys/AppDelegate.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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];

CodingKeys/HotKey.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

CodingKeys/HotKeyService.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ - (HotKey *)findHotKeyByID:(int)keyID {
8484
static OSStatus hotKeyHandler(EventHandlerCallRef nextHandler,
8585
EventRef theEvent,
8686
void *userData) {
87+
8788
EventHotKeyID hotKeyID;
8889
GetEventParameter(theEvent,
8990
kEventParamDirectObject,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}
1.13 KB
Loading

CodingKeys/data/keys.json

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,36 @@
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+
]

Resources/StatusBarIcon.psd

5.81 KB
Binary file not shown.

0 commit comments

Comments
 (0)