Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: batched keypress events failed to be recognized. #167

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

cpendery
Copy link
Member

In the case where the pty batches together multiple keypress events, our current parsing fails to handle this (borrowed from ink. Using a much more robust approach recommended in the node docs and used across more cli project by using 'keypress' event instead of 'data' via readline's built in parsing.

…in parsing to support batched key actions

Signed-off-by: Chapman Pendery <[email protected]>
Signed-off-by: Chapman Pendery <[email protected]>
@cpendery cpendery merged commit ec0798a into main Feb 15, 2024
3 checks passed
@cpendery cpendery deleted the fix/keypress branch February 15, 2024 17:38
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.

None yet

1 participant