FIX: Support underscores in autocomplete widget

This commit is contained in:
Robin Ward 2013-07-03 11:48:59 -04:00
parent c7ac11458b
commit ffac22a143
1 changed files with 2 additions and 1 deletions

View File

@ -342,12 +342,13 @@ $.fn.autocomplete = function(options) {
} else if (e.which === 187) {
term += "+";
} else if (e.which === 189) {
term += "-";
term += (e.shiftKey) ? "_" : "-";
} else {
if (e.which !== 8) {
term += ",";
}
}
options.dataSource(term).then(updateAutoComplete);
return true;
}