Skip to content

Multiline TextField + TextEvent.TEXT_INPUT: event.text should be \n instead of \r when user press enter #19482

Open
@ylazy

Description

@ylazy

Describe the bug

On TextEvent.TEXT_INPUT event handler, when I get event.text:

Flash: I got event.text = \n
Ruffle: I got event.text = \r

Expected behavior

event.text should return \n

Content Location

There's no need a swf to reproduce the bug.

Affected platform

Desktop app

Operating system

Windows 11

Browser

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginputIssues relating to user input in Flash contenttextIssues relating to text rendering/input

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions