aboutsummaryrefslogtreecommitdiffstats
path: root/Demo/AppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/AppDelegate.m')
-rw-r--r--Demo/AppDelegate.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/AppDelegate.m b/Demo/AppDelegate.m
index fd8d307..24d2c81 100644
--- a/Demo/AppDelegate.m
+++ b/Demo/AppDelegate.m
@@ -43,7 +43,7 @@ static void *MASObservingContext = &MASObservingContext;
context:MASObservingContext];
}
-- (void) playShortcutFeedback
+- (void)playShortcutFeedback
{
[[NSSound soundNamed:@"Ping"] play];
[_feedbackTextField setStringValue:@"Shortcut pressed!"];
@@ -83,7 +83,7 @@ static void *MASObservingContext = &MASObservingContext;
- (void) setHardcodedShortcutEnabled: (BOOL) enabled
{
- MASShortcut *shortcut = [MASShortcut shortcutWithKeyCode:kVK_ANSI_Keypad2 modifierFlags:NSCommandKeyMask];
+ MASShortcut *shortcut = [MASShortcut shortcutWithKeyCode:kVK_F2 modifierFlags:NSCommandKeyMask];
if (enabled) {
[[MASShortcutMonitor sharedMonitor] registerShortcut:shortcut withAction:^{
[self playShortcutFeedback];