fix autocomplete charcode '0' and 'z'

This commit is contained in:
knoxmic 2013-03-31 16:00:21 +02:00
parent 5bf3a0eaf3
commit 182f794466
1 changed files with 1 additions and 1 deletions

View File

@ -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) {