diff --git a/Easydict/Feature/Shortcut/EZShortcut.m b/Easydict/Feature/Shortcut/EZShortcut.m index 69becdc1c..f49ed9047 100644 --- a/Easydict/Feature/Shortcut/EZShortcut.m +++ b/Easydict/Feature/Shortcut/EZShortcut.m @@ -48,23 +48,29 @@ + (void)setup { [[MASShortcutBinder sharedBinder] setBindingOptions:@{NSValueTransformerNameBindingOption: NSSecureUnarchiveFromDataTransformerName}]; */ + // hidden pop button when user playing shortcut [[MASShortcutBinder sharedBinder] bindShortcutWithDefaultsKey:EZSelectionShortcutKey toAction:^{ + [windowManager.popButtonWindow close]; [windowManager selectTextTranslate]; }]; [[MASShortcutBinder sharedBinder] bindShortcutWithDefaultsKey:EZSnipShortcutKey toAction:^{ + [windowManager.popButtonWindow close]; [windowManager snipTranslate]; }]; [[MASShortcutBinder sharedBinder] bindShortcutWithDefaultsKey:EZInputShortcutKey toAction:^{ + [windowManager.popButtonWindow close]; [windowManager inputTranslate]; }]; [[MASShortcutBinder sharedBinder] bindShortcutWithDefaultsKey:EZShowMiniShortcutKey toAction:^{ + [windowManager.popButtonWindow close]; [windowManager showMiniFloatingWindow]; }]; [[MASShortcutBinder sharedBinder] bindShortcutWithDefaultsKey:EZScreenshotOCRShortcutKey toAction:^{ + [windowManager.popButtonWindow close]; [windowManager screenshotOCR]; }];