Skip to content

Commit

Permalink
fix: close main window
Browse files Browse the repository at this point in the history
  • Loading branch information
AkaShark committed Dec 30, 2023
1 parent fb31272 commit 1a849eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Easydict/Feature/Shortcut/EZShortcut.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ + (void)setup {
[windowManager selectTextTranslate];
}];

[[MASShortcutBinder sharedBinder] ez_bindShortcutWithDefaultsKey:EZSelectionShortcutKey toAction:^{
[[MASShortcutBinder sharedBinder] ez_bindShortcutWithDefaultsKey:EZSnipShortcutKey toAction:^{
[windowManager snipTranslate];
}];

[[MASShortcutBinder sharedBinder] ez_bindShortcutWithDefaultsKey:EZSelectionShortcutKey toAction:^{
[[MASShortcutBinder sharedBinder] ez_bindShortcutWithDefaultsKey:EZInputShortcutKey toAction:^{
[windowManager inputTranslate];
}];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ - (void)closeFloatingWindow {

if ([EZMainQueryWindow isAlive]) {
[self.mainWindow orderBack:nil];
[self.mainWindow close];
}

// Move floating window type to second.
Expand Down

0 comments on commit 1a849eb

Please sign in to comment.