Skip to content

Commit

Permalink
fix move to folder shortcut in Catalina
Browse files Browse the repository at this point in the history
The single character shortcut defined in menu doesn't work in Catalina
  • Loading branch information
wwwjfy committed Oct 14, 2019
1 parent 1ae662a commit 79fdf85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions GMailinator/GMailinator.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
return [NSBundle bundleForClass:[GMailinator class]];
}

SearchManager *_sm;

@implementation GMailinator

+ (void)initialize {
[GMailinator registerBundle];
SearchManager *sm = [[SearchManager alloc] init];
[sm setContextMenu:nil];
_sm = sm;
objc_setAssociatedObject(GetGMailinatorBundle(), @"searchManager", sm,
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
Expand Down Expand Up @@ -125,6 +128,10 @@ - (BOOL)performSelectorOnMessageViewer:(id)messageViewer
withObject:nil];
break;
}
case 'l': {
[_sm moveToFolder:nil];
break;
}
case 'o': {
[messageViewer performSelector:@selector(openMessages:) withObject:nil];
break;
Expand Down

0 comments on commit 79fdf85

Please sign in to comment.