File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -969,15 +969,19 @@ - (BOOL)validateMenuItem:(NSMenuItem *)item
969969- (void )windowDidBecomeMain : (NSNotification *)notification
970970{
971971 [[MMAppController sharedInstance ] setMainMenu: [vimController mainMenu ]];
972- [vimController sendMessage: GotFocusMsgID data: nil ];
973972
974973 if ([vimView textView ]) {
975974 NSFontManager *fm = [NSFontManager sharedFontManager ];
976975 [fm setSelectedFont: [[vimView textView ] font ] isMultiple: NO ];
977976 }
978977}
979978
980- - (void )windowDidResignMain : (NSNotification *)notification
979+ - (void )windowDidBecomeKey : (NSNotificationCenter *)notification
980+ {
981+ [vimController sendMessage: GotFocusMsgID data: nil ];
982+ }
983+
984+ - (void )windowDidResignKey : (NSNotification *)notification
981985{
982986 [vimController sendMessage: LostFocusMsgID data: nil ];
983987}
You can’t perform that action at this time.
0 commit comments