Skip to content
Snippets Groups Projects
Commit 363f5f8c authored by George Nachman's avatar George Nachman
Browse files

Restore original behavior of show/hide

parent 8ea49c82
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1431,14 +1431,9 @@ void OnHotKeyEvent(void)
NSWindow* appKeyWindow = [[NSApplication sharedApplication] keyWindow];
if (prefWindow != appKeyWindow ||
![iTermApplication isTextFieldInFocus:[prefPanel hotkeyField]]) {
if (OSX_LEOPARDORLATER) {
[[iTermController sharedInstance] restorePreviouslyActiveApp];
} else {
[NSApp hide:nil];
}
[NSApp hide:nil];
}
} else {
[[iTermController sharedInstance] storePreviouslyActiveApp];
iTermController* controller = [iTermController sharedInstance];
int n = [controller numberOfTerminals];
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment