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

Don't send iterm2 to back when doing show/hide without a hotkey

parent ddba7a9f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1431,9 +1431,14 @@ void OnHotKeyEvent(void)
NSWindow* appKeyWindow = [[NSApplication sharedApplication] keyWindow];
if (prefWindow != appKeyWindow ||
![iTermApplication isTextFieldInFocus:[prefPanel hotkeyField]]) {
[NSApp hide:nil];
if (OSX_LEOPARDORLATER) {
[[iTermController sharedInstance] restorePreviouslyActiveApp];
} else {
[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