Fix shortcuts.

This commit is contained in:
Qiu Yuzhou
2017-03-20 22:30:47 +08:00
parent 4ab5ebe9b7
commit aa7cfc2e14

View File

@ -18,12 +18,12 @@
[binder [binder
bindShortcutWithDefaultsKey: @"ToggleRunning" bindShortcutWithDefaultsKey: @"ToggleRunning"
toAction:^{ toAction:^{
[[NSNotificationCenter defaultCenter] postNotificationName: @"NOTIFY_TOGGLE_RUNNING" object: nil]; [[NSNotificationCenter defaultCenter] postNotificationName: @"NOTIFY_TOGGLE_RUNNING_SHORTCUT" object: nil];
}]; }];
[binder [binder
bindShortcutWithDefaultsKey: @"SwitchProxyMode" bindShortcutWithDefaultsKey: @"SwitchProxyMode"
toAction:^{ toAction:^{
[[NSNotificationCenter defaultCenter] postNotificationName: @"NOTIFY_SWITCH_PROXY_MODE" object: nil]; [[NSNotificationCenter defaultCenter] postNotificationName: @"NOTIFY_SWITCH_PROXY_MODE_SHORTCUT" object: nil];
}]; }];
} }