Allow cursor-based editing in server creation fields #5

Closed
opened 2026-11-16 02:51:22 +00:00 by aaron · 0 comments
Owner

Problem

Server creation fields only support typing at the end and backspacing. Left and Right arrow keys do not move the cursor. To fix a mistake earlier in a value, users must delete and retype everything after it.

Change

Allow users to move the cursor within each server creation field and edit text at that position.

Done when

  • Left and Right move the cursor within the active field without changing its text.
  • Typing inserts text at the cursor rather than always appending it.
  • Backspace removes the character before the cursor; Delete removes the character after it.
  • Home and End move to the start and end of the field.
  • The cursor stays visible when editing values wider than the field.
  • Editing handles Unicode text without corrupting it or panicking.
  • Tab and Up/Down still switch fields; Enter saves and Escape cancels.
  • Tests cover correcting text in the middle of a value, cursor boundaries, Unicode text and switching fields.

Reproduction

  1. Open the server creation dialog.
  2. Type a name or URL with a mistake near the beginning.
  3. Press Left to move back to the mistake.
  4. Observe that the cursor does not move and the only way to correct it is to backspace and retype the rest.
## Problem Server creation fields only support typing at the end and backspacing. Left and Right arrow keys do not move the cursor. To fix a mistake earlier in a value, users must delete and retype everything after it. ## Change Allow users to move the cursor within each server creation field and edit text at that position. ## Done when - Left and Right move the cursor within the active field without changing its text. - Typing inserts text at the cursor rather than always appending it. - Backspace removes the character before the cursor; Delete removes the character after it. - Home and End move to the start and end of the field. - The cursor stays visible when editing values wider than the field. - Editing handles Unicode text without corrupting it or panicking. - Tab and Up/Down still switch fields; Enter saves and Escape cancels. - Tests cover correcting text in the middle of a value, cursor boundaries, Unicode text and switching fields. ## Reproduction 1. Open the server creation dialog. 2. Type a name or URL with a mistake near the beginning. 3. Press Left to move back to the mistake. 4. Observe that the cursor does not move and the only way to correct it is to backspace and retype the rest.
aaron added this to the v0.2.0 milestone 2026-11-16 14:41:41 +00:00
aaron closed this issue 2026-11-16 17:21:14 +00:00
Sign in to join this conversation.
No description provided.