mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Support underscores in autocomplete widget
This commit is contained in:
parent
c7ac11458b
commit
ffac22a143
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user