Sitelet https://github.com/flutter/flutter/issues/19371
Skip to content

Enter key is not working properly (the cursor is not updated to the newline) in Text Fields #19371

Description

@sgon00

The flutter is the latest version. I just ran flutter upgrade.

$ flutter doctor
[✓] Flutter (Channel master, v0.5.7-pre.118, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 2.3)

It's hard for me to describe the bug in English so that I uploaded three screenrecords. Both bug01.mp4 and bug02.mp4 are the bug behaviors. expect.mp4 is what I expect in a normal native app.

Basically, when I input words in text fields and press Enter, the cursor is always not updated to the next new line and the cursor is still in the old line. (this is not expected) That will cause some weird observation. When the cursor is still in the old line and I input some words, the new inputs will jump to next line. Something like that.

PS:
Actually, I found this incorrect Enter key behavior 7 months ago and filed a bug in some community app project. I didn't pay too much attention on this bug because I think it's too obvious and everyone should notice it. I thought the bug should be fixed very soon. But I was wrong and after about a year, the most obvious bug is still here.

enterKeyBug.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowplatform-androidAndroid applications specificallyplatform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions