Skip to content

Implement character-sending loop and backspace retry logic #98

@andyvn1

Description

@andyvn1

Implement the core typing logic in the /key_press_result callback:

  • On success: advance message_index, send next character
  • On failure: send "BACKSPACE" first, then re-send the failed character after the backspace succeeds
  • Guard against sending a new character while still waiting for a result (waiting_for_result flag)
  • Example flow for message "MARS" with a typo on "R":

send "M" → success → send "A" → success → send "R" → fail
→ send "BACKSPACE" → success → send "R" → success → send "S" → success → done

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions