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

Text buffer is not handling returns right #154

Closed
ChaosNicro opened this issue Aug 11, 2023 · 1 comment
Closed

Text buffer is not handling returns right #154

ChaosNicro opened this issue Aug 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ChaosNicro
Copy link

Describe the bug
When writing a note, the last word or whatever is in the textbuffer is inserted at the end of the field. This is triggered both when hitting the return key or randomly when writing while the cursor is not at the end of the field. Leaving a trailing space at the end of the line clears the buffer and avoids the problem.
Tested with both AOSP-keyboard and Anysoftkeyboard.

To Reproduce
Steps to reproduce the behavior:

  1. Open a note
  2. Start typing letters (at least two words)
  3. Hit return
  4. See the cursor move down a line with the same word copied to the new line.
    Expected behavior
    Hitting return moves the cursor and everything after it to the next line without inserting extra text.

Screenshots
Screenshot_20230811-090156_My Brain

Smartphone (please complete the following information):

  • Device: Xiaomi Mi 11 5g lite
  • OS: A12
  • App Version 1.0.4

Additional context
Additionally single new lines seem to get ignored in view-mode (needing one whole empty line to show) but that could just be a weird markdown interpretation.

@ChaosNicro ChaosNicro added the bug Something isn't working label Aug 11, 2023
@ChaosNicro ChaosNicro changed the title Text buffer in not handling returns right Text buffer is not handling returns right Aug 11, 2023
@mhss1
Copy link
Owner

mhss1 commented May 2, 2024

The issue does occur after updating Jetpack Compose's version.
Let me know if it still persests after the next release. Also try using another keyboard as it might be from AnysoftKeyboard

@mhss1 mhss1 closed this as completed May 2, 2024
@mhss1 mhss1 mentioned this issue May 6, 2024
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants