diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 6d85011..653473e 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -753,6 +753,9 @@ function navigateInList(textArea, event) { case keymap["ChooseSelected"]: if (selectedTag !== null) { insertTextAtCursor(textArea, results[selectedTag], tagword); + } else { + hideResults(textArea); + return; } break; case keymap["ChooseFirstOrSelected"]: