Skip to content

feature: shift+enter makes a new line in chat - #578

Merged
lukepolo merged 1 commit into
mainfrom
feature/chat-multiline
Sep 18, 2026
Merged

lukepolo merged 1 commit into
mainfrom
feature/chat-multiline

Conversation

@lukepolo

Copy link
Copy Markdown
Contributor

Shift+Enter inserts a line break instead of sending, the way Steam chat and Discord behave. Enter still sends, Ctrl/Cmd+Enter still sends to the other room (match chat from team chat and back), and an Enter that is confirming an IME candidate never sends.

The single-line <Input> became a <Textarea> that starts one line tall and grows to five. Messages render with whitespace-pre-wrap, so the breaks survive.

Pair with 5stackgg/api#410, which keeps a relayed message to one rcon argument — without it a newline in match chat would end the console command.

Tests: 99 (+5 for the key handling).

Enter still sends and ctrl/cmd+enter still sends to the other room. The box
grows to five lines and messages render their line breaks.
@lukepolo
lukepolo merged commit bcff912 into main Sep 18, 2026
2 checks passed
@lukepolo
lukepolo deleted the feature/chat-multiline branch September 18, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant