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

The first Enter press in a multiline text input does not create a new line #494

Closed
crazyjay97 opened this issue Dec 17, 2024 · 3 comments · Fixed by #523
Closed

The first Enter press in a multiline text input does not create a new line #494

crazyjay97 opened this issue Dec 17, 2024 · 3 comments · Fixed by #523

Comments

@crazyjay97
Copy link

When I first focus on the Input, the first press of Enter does not produce a newline effect. During the program's lifecycle, the first press of Enter after each subsequent focus will not produce any effect.

let text_input = cx.new_view(|cx| {
    TextInput::new(cx).multi_line().rows(3).with_size(px(12.0))
});
@huacnlee
Copy link
Member

I can't replay this issue. Would do please take a video for show it?

@crazyjay97
Copy link
Author

enter.mov

@crazyjay97
Copy link
Author

crazyjay97 commented Dec 25, 2024

OS: macOS Sequoia 15.0.1
actually, I had to press Enter twice to create a new line.
maybe it's an issue with my laptop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants