mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
fix autocomplete charcode '0' and 'z'
This commit is contained in:
parent
5bf3a0eaf3
commit
182f794466
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user