From 8f5362b01faf105b6ff8d1cafaccf5a72560d7e9 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 17 Jul 2010 16:32:28 +0000 Subject: - Tweak custom query autocompletion to no longer show a key-capturing invisible empty autocomplete when no autocomplete matches are found --- Source/SPNarrowDownCompletion.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index eaa3c43c..508df857 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -749,8 +749,12 @@ - (void)orderFront:(id)sender { [self filter]; - [super orderFront:sender]; - [self performSelector:@selector(watchUserEvents) withObject:nil afterDelay:0.05]; + if (!closeMe) { + [super orderFront:sender]; + [self performSelector:@selector(watchUserEvents) withObject:nil afterDelay:0.05]; + } else { + [self close]; + } } - (void)watchUserEvents -- cgit v1.2.3