Skip to content

Fix input prompt inserting arrow key names as text#10

Merged
seeden merged 1 commit intomainfrom
fix-input-arrow-keys
Mar 8, 2026
Merged

Fix input prompt inserting arrow key names as text#10
seeden merged 1 commit intomainfrom
fix-input-arrow-keys

Conversation

@seeden
Copy link
Copy Markdown
Owner

@seeden seeden commented Mar 8, 2026

  • Fix multi-byte character handler in input prompt that matched escape sequences and non-text keys, causing literal "up"/"down" to be inserted as text
  • Add !key.raw.startsWith("\x1b") guard to reject escape sequences
  • Add NON_TEXT_KEY_NAMES set to explicitly reject known non-text key names
  • Fix repository URLs in SPEC.md and docs (nichochar -> seeden)

The multi-byte character handler matched escape sequences and
non-text keys, causing literal "up"/"down" to appear in the input.
Add guards to reject escape sequences and known non-text key names.

Also fix repository URLs in SPEC.md and docs.
@seeden seeden merged commit 9d375fe into main Mar 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant