[research] Paste/drop an image → land in the caption field so "here's the bug" is one motion #129

Closed
opened 2026-09-17 16:10:04 -04:00 by jared · 1 comment
Owner

Verify first how the upload card behaves today (components/upload-card, UploadBoard, RoomInput paste path): when an image is pasted, where does focus go, is the caption field visible without an extra click, and does Enter send the upload + caption together?

If focus stays in the composer with an empty caption card: proposal is to auto-focus the new card's caption input when the paste/drop added exactly one image and the composer was empty; Enter sends; Escape returns to the composer. No change for multi-file drops.

Verify first how the upload card behaves today (`components/upload-card`, `UploadBoard`, `RoomInput` paste path): when an image is pasted, where does focus go, is the caption field visible without an extra click, and does Enter send the upload + caption together? If focus stays in the composer with an empty caption card: proposal is to auto-focus the new card's caption input when the paste/drop added exactly one image and the composer was empty; Enter sends; Escape returns to the composer. No change for multi-file drops.
jared added this to the Features 2026-Q4 milestone 2026-09-17 16:10:04 -04:00
jared added the enhancementpriority: lowarea: mediaresearch labels 2026-09-17 16:10:04 -04:00
jared self-assigned this 2026-09-17 16:10:05 -04:00
Author
Owner

Verified first (headless): after pasting an image the focus stayed in the composer and the caption field needed a click; Enter in the composer did send upload + caption together, Enter in the caption did nothing.

Done in 0c45bde8: exactly one image pasted/dropped into an empty composer → its card's caption input takes focus; Enter there sends the board (plus any composer text); Escape puts focus back in the composer. Two-or-more files, or a non-empty composer: unchanged (focus stays put).

Headless: paste one PNG → activeElement is the caption input → type "here is the bug" → Enter → the m.image event has body: "here is the bug", filename: image.png; Escape returns to the editor; a two-image paste leaves focus in the editor.

Verified first (headless): after pasting an image the focus stayed in the composer and the caption field needed a click; Enter in the composer did send upload + caption together, Enter in the caption did nothing. Done in 0c45bde8: exactly one image pasted/dropped into an **empty** composer → its card's caption input takes focus; **Enter** there sends the board (plus any composer text); **Escape** puts focus back in the composer. Two-or-more files, or a non-empty composer: unchanged (focus stays put). Headless: paste one PNG → `activeElement` is the caption input → type "here is the bug" → Enter → the `m.image` event has `body: "here is the bug"`, `filename: image.png`; Escape returns to the editor; a two-image paste leaves focus in the editor.
jared closed this issue 2026-09-20 15:11:37 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#129