aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-08-30 23:56:39 +0000
committerrowanbeentje <rowan@beent.je>2011-08-30 23:56:39 +0000
commita15f9f07c618351d61cc1991edf8c8b892e7d13e (patch)
treeb0f96b01c939156cdb3576f962ac8f5d3145ef13
parent1a2439b27b6d0c3d654eb95d42e38deaf597eb80 (diff)
downloadsequelpro-a15f9f07c618351d61cc1991edf8c8b892e7d13e.tar.gz
sequelpro-a15f9f07c618351d61cc1991edf8c8b892e7d13e.tar.bz2
sequelpro-a15f9f07c618351d61cc1991edf8c8b892e7d13e.zip
- Cancel and clear autocomplete if a keyboard combo is being run - this fixes Issue #1119
-rw-r--r--Source/SPNarrowDownCompletion.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index eaf36e4f..226becf6 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -827,6 +827,9 @@
}
else if((flags & NSAlternateKeyMask) || (flags & NSCommandKeyMask))
{
+ if (autocompletePlaceholderWasInserted) [self removeAutocompletionPlaceholderUsingFastMethod:YES];
+ [theView setCompletionIsOpen:NO];
+ [self close];
[NSApp sendEvent:event];
break;
}