ruffle-rs/ruffle

textField.restrict prevents Enter key from starting new line

Open

#23,453 opened on 2026年4月13日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Rust (932 forks)batch import
buggood first issuesponsortext

Repository metrics

Stars
 (17,394 stars)
PR merge metrics
 (平均マージ 4d 3h) (30d で 108 merged PRs)

説明

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.

コントリビューターガイド