这是indexloc提供的服务,不要输入任何密码
Skip to content

Naive Text Input View sends a newline on completion #1020

@epitron

Description

@epitron

When pressing the "send" button after entering text using the native input field (above the keyboard), it appends a newline character (\n), which many cli programs interpret as "enter".

However, real keyboard sends a carriage return (\r). Some programs expect this character, and either ignore the \n or interpret it as a soft enter.

Is there a reason \n was chosen over \r? It makes more sense to emulate pressing the enter key after the input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions