Skip to content

Commit 7043ab9

Browse files
committed
Merge pull request discourse#602 from knoxmic/master
FIX: Autocomplete, missing charcode for correct term
2 parents b99befc + 182f794 commit 7043ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/discourse/components/autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ $.fn.autocomplete = function(options) {
302302
return false;
303303
}
304304
term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition);
305-
if (e.which > 48 && e.which < 90) {
305+
if (e.which >= 48 && e.which <= 90) {
306306
term += String.fromCharCode(e.which);
307307
} else {
308308
if (e.which !== 8) {

0 commit comments

Comments
 (0)