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

BasicTextField: The cursor jumps to the previous line when typing at the beginning of a empty line #1834

Closed
drakeet opened this issue Feb 12, 2022 · 7 comments
Assignees
Labels
Milestone

Comments

@drakeet
Copy link
Contributor

drakeet commented Feb 12, 2022

compose.version=1.1.0-alpha04

The cursor jumps to the previous line when typing at the beginning of a blank line. See demo:

Feb-12-2022.23-41-05.mp4

Steps to reproduce:

  1. Input the text into the BasicTextField:
Line 1
Line 3
  1. Put the cursor after "Line 1" and press enter to get a new empty line
  2. Switch input method to Chinese input mode
  3. Enter some Chinese content
  4. Delete all Chinese content so that the current line is empty
  5. At this point, keep the Chinese input mode, and enter new Chinese, when the keyboard key is pressed, the cursor will jump to the previous line, and our empty line is automatically deleted.
@drakeet drakeet changed the title BasicTextField: The cursor jumps to the previous line when typing at the beginning of a blank line BasicTextField: The cursor jumps to the previous line when typing at the beginning of a empty line Feb 12, 2022
@akurasov akurasov added desktop text bug Something isn't working AK labels Feb 15, 2022
@drakeet
Copy link
Contributor Author

drakeet commented Feb 16, 2022

Seems to be the same issue as #672.

@drakeet
Copy link
Contributor Author

drakeet commented Feb 16, 2022

TODO: recheck this bug after JetBrains/compose-multiplatform-core#193 is merged.

@akurasov
Copy link
Contributor

Can be reproduced even easier:
Input English test, switch to Chinese, press enter, start typing. Cursor will jump back.

@akurasov akurasov removed the AK label Feb 16, 2022
@drakeet
Copy link
Contributor Author

drakeet commented Feb 16, 2022

still happen with compose.version=1.2.0-alpha01-dev620

@drakeet
Copy link
Contributor Author

drakeet commented Feb 17, 2022

still happen with compose.version=1.1.0-alpha05

@drakeet
Copy link
Contributor Author

drakeet commented Feb 24, 2022

@VeselovAlex It looks like this bug has been fixed on v1.1.0-rc01. So I am closing this issue...

@drakeet drakeet closed this as completed Feb 24, 2022
@drakeet
Copy link
Contributor Author

drakeet commented Feb 24, 2022

Good job! Thank you so much @VeselovAlex

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

No branches or pull requests

4 participants