Skip to content

Fix command typing after returning focus from world frames#496

Open
drjoeycadieux wants to merge 2 commits into
google:masterfrom
drjoeycadieux:fix/command-input-focus
Open

Fix command typing after returning focus from world frames#496
drjoeycadieux wants to merge 2 commits into
google:masterfrom
drjoeycadieux:fix/command-input-focus

Conversation

@drjoeycadieux

Copy link
Copy Markdown

Summary

Fix typed characters being lost when focus returns from a world or log frame to a non-empty command input.

The character is now inserted at the cursor and replaces any selected text, matching normal textarea behavior.

Testing

  • Added client-harness coverage for empty input, caret insertion, and selection replacement.
  • git diff --check

Note: Node and a browser test runner are unavailable in this environment, so I could not execute the browser harness here.

## Summary
Fix typed characters being lost when focus returns from a world or log frame to a non-empty command input.

The character is now inserted at the cursor and replaces any selected text, matching normal textarea behavior.

## Testing
- Added client-harness coverage for empty input, caret insertion, and selection replacement.
- `git diff --check`

Note: Node and a browser test runner are unavailable in this environment, so I could not execute the browser harness here.
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