When direct chat is disabled, just press enter or slash to begin typing.
Enter focuses the chat box with the cursor at the end of anything that was previously typed but not sent.
Slash focuses the chat box, clears anything previously typed, and types a slash so that you can immediately start typing a command.