aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-04-19 23:25:38 +0000
committerrowanbeentje <rowan@beent.je>2012-04-19 23:25:38 +0000
commit3b079c8d06ee5676190c9f11aec3b64f4631b048 (patch)
tree32d56293a0a6776dd67bcec10bacd35b7dbc7f7b /Source
parent7bf2d269c3311b640ce67e0a4860965e079fef97 (diff)
downloadsequelpro-3b079c8d06ee5676190c9f11aec3b64f4631b048.tar.gz
sequelpro-3b079c8d06ee5676190c9f11aec3b64f4631b048.tar.bz2
sequelpro-3b079c8d06ee5676190c9f11aec3b64f4631b048.zip
- Add the enter key and right arrow key to the list of keys that will select the current autocompletion suggestion if the suggestion list is open, rather than performing their default actions. This addresses Issue #1321.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPNarrowDownCompletion.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index db3f5e3a..76336069 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -862,7 +862,7 @@
break;
}
}
- else if(key == NSCarriageReturnCharacter || (key == NSTabCharacter && !triggerMode))
+ else if(key == NSCarriageReturnCharacter || key == NSEnterCharacter || key == NSRightArrowFunctionKey || (key == NSTabCharacter && !triggerMode))
{
[self completeAndInsertSnippet];
}