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

Add \r back for the KeyEvent::Enter #239

Merged
merged 2 commits into from
Sep 20, 2019
Merged

Add \r back for the KeyEvent::Enter #239

merged 2 commits into from
Sep 20, 2019

Conversation

zrzka
Copy link
Contributor

@zrzka zrzka commented Sep 20, 2019

Actually, that's my mistake. When I said that the \r is useless on Unix, I was right & wrong. In raw mode, the Enter key sends CR and the terminal driver translates this to the new line. I've just tested this and without the \r, the input event is CTRL-M, which is Enter. When added back, it's correctly translated to the KeyEvent::Enter. Sorry for introducing this bug.

Introduce KeyEvent::Tab mentioned in the #236.

Signed-off-by: Robert Vojta <[email protected]>
Copy link
Member

@TimonPost TimonPost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I should have reviewed better as well :)

@TimonPost TimonPost merged commit 60cd127 into crossterm-rs:master Sep 20, 2019
december1981 pushed a commit to december1981/crossterm that referenced this pull request Oct 26, 2023
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