mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Support underscores in autocomplete widget
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user