Merge pull request #602 from knoxmic/master
FIX: Autocomplete, missing charcode for correct term
This commit is contained in:
commit
7043ab906f
|
@ -302,7 +302,7 @@ $.fn.autocomplete = function(options) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition);
|
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);
|
term += String.fromCharCode(e.which);
|
||||||
} else {
|
} else {
|
||||||
if (e.which !== 8) {
|
if (e.which !== 8) {
|
||||||
|
|
Loading…
Reference in New Issue