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: the first key after terminal-window activated was input twice. #40

Merged
merged 1 commit into from
Nov 20, 2020
Merged

Fix: the first key after terminal-window activated was input twice. #40

merged 1 commit into from
Nov 20, 2020

Conversation

hymkor
Copy link
Contributor

@hymkor hymkor commented Nov 20, 2020

I found that my last patch #38 for go-tty has caused a new problem from nyaosorg/nyagos#393 .

We can see the problem by this operation.

  1. Exec go run _example\readline.go
  2. Type ALT-TAB to focus the other Window (for example , Windows Explorer )
  3. Type ALT-TAB to focus the Terminal Window that go run _example\readline.go is running.
  4. Type a key.
  5. We will see two characters aa input in the terminal that go run _example\readline.go is running.

I made another patch to reduce the bad influence of #38 .
( I am sorry that it is not an essential solution but just a workaround )

Would you please merge it , @mattn ?

@mattn mattn merged commit 72ed86c into mattn:master Nov 20, 2020
@mattn
Copy link
Owner

mattn commented Nov 20, 2020

Thank you

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.

2 participants