ruffle-rs/ruffle

textField.restrict prevents Enter key from starting new line

开放

#23,453 创建于 2026年4月13日

 (0 条评论) (0 个反应) (0 位负责人)Rust (932 个派生)batch import
buggood first issuesponsortext

仓库指标

星标
 (17,394 个星标)
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.

贡献者指南