diff --git a/GMailinator/GMailinator.m b/GMailinator/GMailinator.m index cbabcd0..c457ae2 100644 --- a/GMailinator/GMailinator.m +++ b/GMailinator/GMailinator.m @@ -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); } @@ -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;