-
Notifications
You must be signed in to change notification settings - Fork 646
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
Enter key causes TextEdit to add a space instead of going to the new line #1318
Comments
Thanks for the bug report!
|
Actually no, i can also reproduce on desktop with the GL backend. So this is not a wasm problem. |
I think this is related to the position of the cursor. slint/internal/backends/gl/glrenderer.rs Lines 400 to 401 in a2484cf
But that kind of fails if the last character is a \n Because the \n is at the end of the line, and there is no more line after that (the empty line is not rendered) then we can't know the position of the cursor in the next line in that loop. We would need to special case it. Another problem is that the selection is drawn over the whitespace at the end of the lines, which the Qt backend doesn't do |
When using TextEdit and pressing enter a space is added then when you try to write the text goes to the new line. Instead a new line should be added when pressing Enter
The text was updated successfully, but these errors were encountered: