From 3b079c8d06ee5676190c9f11aec3b64f4631b048 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 19 Apr 2012 23:25:38 +0000 Subject: - 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. --- Source/SPNarrowDownCompletion.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPNarrowDownCompletion.m') 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]; } -- cgit v1.2.3