ruffle-rs/ruffle

textField.restrict prevents Enter key from starting new line

Ouverte

#23 453 ouverte le 13 avr. 2026

 (0 commentaire) (0 réaction) (0 personne assignée)Rust (932 forks)batch import
buggood first issuesponsortext

Métriques du dépôt

Stars
 (17 394 étoiles)
Métriques de merge PR
 (Merge moyen 4j 3h) (108 PRs mergées en 30 j)

Description

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.

Guide contributeur