diff --git a/app/assets/javascripts/discourse/lib/autocomplete.js b/app/assets/javascripts/discourse/lib/autocomplete.js index a1a68e919a2..168c3c2e936 100644 --- a/app/assets/javascripts/discourse/lib/autocomplete.js +++ b/app/assets/javascripts/discourse/lib/autocomplete.js @@ -398,10 +398,8 @@ $.fn.autocomplete = function(options) { term += (e.shiftKey) ? "|" : "]"; } else if (e.which === 222) { term += (e.shiftKey) ? "\"" : "'"; - } else { - if (e.which !== 8) { - term += ","; - } + } else if (e.which !== 8) { + term += ","; } updateAutoComplete(options.dataSource(term));