ruffle-rs/ruffle

textField.restrict prevents Enter key from starting new line

Open

#23,453 建立於 2026年4月13日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Rust (932 fork)batch import
buggood first issuesponsortext

倉庫指標

Star
 (17,394 star)
PR 合併指標
 (平均合併 4天 3小時) (30 天內合併 108 個 PR)

描述

Describe the bug

Using textField.restrict will disable a text input field's default behaviour of starting a new line when the Enter key is pressed. This is inconsistent with Flashplayer's behaviour.

The issue seems to occur regardless of what is entered into restrict. These both trigger the bug: textField.restrict = "A-Za-z0-9" textField.restrict = ""

Expected behavior

Enter key should still start a new line.

Content Location

text bug.zip

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

Tested in Desktop Ruffle.

貢獻者指南