ruffle-rs/ruffle
Auf GitHub ansehentextField.restrict prevents Enter key from starting new line
Open
#23.453 geöffnet am 13. Apr. 2026
buggood first issuesponsortext
Repository-Metriken
- Stars
- (17.394 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 4T 3h) (108 gemergte PRs in 30 T)
Beschreibung
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
Affected platform
Desktop app
Operating system
Windows 10
Browser
No response
Additional information
Tested in Desktop Ruffle.