Skip to content
New issue

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

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

Already on GitHub? # to your account

fix windows double character #17

Closed
wants to merge 1 commit into from
Closed

fix windows double character #17

wants to merge 1 commit into from

Conversation

pm100
Copy link
Contributor

@pm100 pm100 commented May 5, 2023

fix for #14

a change in crossterm 0.26 (crossterm-rs/crossterm#745) causes key release event to be generated on windows. The input handler of textarea was treating those as additional keystrokes. The same bug was apparent in all the samples

Note I also added some logging. I did not remove it as the plumbing is useful to have (I think)

@rhysd
Copy link
Owner

rhysd commented May 9, 2023

  • This crate must support both crossterm v0.25 and v0.26. Are you sure both are supported?
  • Logging code with simplelog is not related to issue which this PR want to fix. So please remove it

@pm100
Copy link
Contributor Author

pm100 commented May 9, 2023

(I hope i have updated PR correctly - still git noob)

Logging in samples removed

I tested all relevant samples with tui (cross 25) and ratatui (cross 26)

@pm100 pm100 reopened this May 9, 2023
rhysd added a commit that referenced this pull request May 9, 2023
@rhysd
Copy link
Owner

rhysd commented May 9, 2023

@pm100 There are still some unnecessary changes. But it's OK. I'll cherry-pick necessary part of your changes.

@rhysd rhysd closed this in 68f4e0d May 9, 2023
@rhysd
Copy link
Owner

rhysd commented May 9, 2023

@pm100 I cherry-picked your change at 68f4e0d. Though this PR is closed without merge, your change was included in the main branch.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants