mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:16:20 +08: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…
Reference in New Issue
Block a user