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

Make sure that performKeyEquivalent in iTermSearchField doesn't recurse forever. Fixes bug 2855

parent 533930d8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -47,7 +47,12 @@
// This is a pretty ugly hack. Also, calling keyDown from here is probably not cool.
BOOL handled = NO;
if (arrowHandler_ && !(mask & modflag) && (keycode == 125 || keycode == 126)) {
[arrowHandler_ keyDown:theEvent];
static BOOL running;
if (!running) {
running = YES;
[arrowHandler_ keyDown:theEvent];
running = NO;
}
handled = YES;
} else {
handled = [super performKeyEquivalent:theEvent];
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