mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
fix autocomplete charcode '0' and 'z'
This commit is contained in:
parent
5bf3a0eaf3
commit
182f794466
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue