From 72c9c3f020dbfe5368a4f37d567fc9a13647a003 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 26 Jul 2016 15:54:33 +0100 Subject: [PATCH] If there are no completions matching, detach the completer. This prevents an invisible completer from swallowing keystrokes such as up/down --- .../aceEditor/auto-complete/AutoCompleteManager.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee index 75e00a37f6..c5b37d1f3b 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee @@ -134,6 +134,8 @@ define [ editor.completer.showPopup(editor) editor.completer.cancelContextMenu() $(editor.completer.popup?.container).css({'font-size': @$scope.fontSize + 'px'}) + if editor.completer?.completions?.filtered?.length == 0 + editor.completer.detach() bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space" }