mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Make autocomplete with multiple unused results not insert tab
This commit is contained in:
parent
febc9ba744
commit
1399400c39
|
@ -411,9 +411,11 @@ $('#chatinput').onkeydown = function (e) {
|
|||
return nick.toLowerCase().indexOf(stub) == 0
|
||||
});
|
||||
|
||||
if (nicks.length == 1) {
|
||||
insertAtCursor(nicks[0].substr(stub.length) + " ");
|
||||
if (nicks.length > 0) {
|
||||
autocompletedNick = true;
|
||||
if (nicks.length == 1) {
|
||||
insertAtCursor(nicks[0].substr(stub.length) + " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user