feat(messaging): press Enter anywhere to send a message #93

Merged
nrupard merged 1 commit from feat/enter-anywhere-send into main 2026-05-14 17:38:04 +02:00
Owner

Adds a document-level keydown listener in the room composer so Enter sends the pending text and/or voice message regardless of whether the composer textarea is focused. The textarea keeps its own onkeydown handler for the focused case and mention-popover navigation; the new listener covers Enter while focus is elsewhere (message list, page body) and skips interactive elements (inputs, buttons, links, contenteditable) so Enter keeps its native meaning there. The listener is torn down on htmx:beforeCleanupElement with the composer form.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

Adds a document-level keydown listener in the room composer so Enter sends the pending text and/or voice message regardless of whether the composer textarea is focused. The textarea keeps its own onkeydown handler for the focused case and mention-popover navigation; the new listener covers Enter while focus is elsewhere (message list, page body) and skips interactive elements (inputs, buttons, links, contenteditable) so Enter keeps its native meaning there. The listener is torn down on htmx:beforeCleanupElement with the composer form. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
feat(messaging): press Enter anywhere to send a message
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 12s
320e09e931
Adds a document-level keydown listener in the room composer so Enter sends the pending text and/or voice message regardless of whether the composer textarea is focused. The textarea keeps its own onkeydown handler for the focused case and mention-popover navigation; the new listener covers Enter while focus is elsewhere (message list, page body) and skips interactive elements (inputs, buttons, links, contenteditable) so Enter keeps its native meaning there. The listener is torn down on htmx:beforeCleanupElement with the composer form.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
nrupard deleted branch feat/enter-anywhere-send 2026-05-14 17:38:04 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!93
No description provided.