diff --git a/app/assets/javascripts/discourse/components/autocomplete.js b/app/assets/javascripts/discourse/components/autocomplete.js index 6a06f9c41e0..1383e0c1c74 100644 --- a/app/assets/javascripts/discourse/components/autocomplete.js +++ b/app/assets/javascripts/discourse/components/autocomplete.js @@ -302,7 +302,7 @@ $.fn.autocomplete = function(options) { return false; } term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition); - if (e.which > 48 && e.which < 90) { + if (e.which >= 48 && e.which <= 90) { term += String.fromCharCode(e.which); } else { if (e.which !== 8) {