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

feat(input): Add KeyEvent::Enter #236

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

MonsieurMan
Copy link
Contributor

Add KeyEvent::Enter.

Also remove b'\r' from #[cfg(unix)] -> verify this is correct behavior.

Closes #234

Add KeyEvent::Enter.

Also remove b'\r' from #[cfg(unix)], verify this is correct
behavior.
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.

This is great, I would like to see something similar to tab as well

@TimonPost TimonPost merged commit 7d47354 into crossterm-rs:master Sep 19, 2019
@MonsieurMan
Copy link
Contributor Author

I just realised, this is breaking change as matching KeyEvent::Char('\n') will no longer work, it would be the same for tab.

I think I'm going to take a look at other libraries that provides enums for Keyboard input and look if there is more common key we should add. This way we could change it all in one go.

@MonsieurMan MonsieurMan deleted the add-enter-key branch September 19, 2019 11:27
@zrzka
Copy link
Contributor

zrzka commented Sep 19, 2019

Breaking change is fine, minor version will be bumped. There's a plan to release new crossterm by the end of this week / beginning of the next week. So, if you'd like to see more KeyEvent variants, it would be nice if we can fit all these breaking changes into one release. But it's not mandatory, it's a nice to have.

@TimonPost
Copy link
Member

Jub release 0.11 will be the next one

@MonsieurMan
Copy link
Contributor Author

Nice ! I should have some time tommorow and this weekend 👍

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.

Consider adding KeyEvent::Enter
3 participants