Improves tab completion in chat.

Pressing tab after completion now cycles to the next candidate.
Merge pull request #6347 from mizipzor/tab-completion

Improves tab completion in chat.