The inline message editor throws the edit away when it loses focus #280

Closed
opened 2026-10-07 20:42:59 -04:00 by Salastil · 1 comment
Owner

The edit field (MessageRow.tsx:815-828) is a single-line <input> whose onBlur (line 827) cancels the edit. Clicking anywhere else - including the scrollbar or another window - silently discards what was typed. There is no "escape to cancel • enter to save" hint, and an empty edit is sent as-is.

Fix: blur keeps the editor open; Escape cancels and Enter saves (with a visible hint); an empty edit asks whether to delete the message. (The editor itself becoming multi-line is part of the editing feature issue.)

Part of the v1.0 UI pass.

The edit field (MessageRow.tsx:815-828) is a single-line `<input>` whose `onBlur` (line 827) cancels the edit. Clicking anywhere else - including the scrollbar or another window - silently discards what was typed. There is no "escape to cancel • enter to save" hint, and an empty edit is sent as-is. **Fix:** blur keeps the editor open; Escape cancels and Enter saves (with a visible hint); an empty edit asks whether to delete the message. (The editor itself becoming multi-line is part of the editing feature issue.) _Part of the v1.0 UI pass._
Salastil added this to the v1.0 milestone 2026-10-07 20:42:59 -04:00
Salastil added the bug label 2026-10-07 20:42:59 -04:00
Author
Owner

Finished: 6a82c32.

Fixed with the editing work in #300: the inline editor no longer cancels when it loses focus (clicking elsewhere keeps it open; Escape cancels, Enter saves), it has a visible "escape to cancel · enter to save" hint, and saving an empty edit asks whether to delete the message instead of sending an empty one. Picture on #300.

Finished: [6a82c32](https://git.salastil.com/Salastil/moho/commit/6a82c3261c4c925e17f4a1f57999c96e7ab91c3e). Fixed with the editing work in #300: the inline editor no longer cancels when it loses focus (clicking elsewhere keeps it open; Escape cancels, Enter saves), it has a visible "escape to cancel · enter to save" hint, and saving an empty edit asks whether to delete the message instead of sending an empty one. Picture on #300.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#280