feat(messaging): press Enter anywhere to send a message #93
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/enter-anywhere-send"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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