-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Inaccurate behavior with AVM1 text input focusing #23182
Copy link
Copy link
Open
Labels
A-avm1Area: AVM1 (ActionScript 1 & 2)Area: AVM1 (ActionScript 1 & 2)bugSomething isn't workingSomething isn't workinginputIssues relating to user input in Flash contentIssues relating to user input in Flash contentmixed-avmMixing AVM1 and AVM2Mixing AVM1 and AVM2
Metadata
Metadata
Assignees
Labels
A-avm1Area: AVM1 (ActionScript 1 & 2)Area: AVM1 (ActionScript 1 & 2)bugSomething isn't workingSomething isn't workinginputIssues relating to user input in Flash contentIssues relating to user input in Flash contentmixed-avmMixing AVM1 and AVM2Mixing AVM1 and AVM2
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
In Ruffle, with an AVM1 movie, when you click anywhere while a text input is currently focused, then it will unfocus. In Flash Player, this not (always) the case.
Expected behavior
In a standalone AVM1 movie, this behavior is SWF version dependent. On version 9 and above, clicking anywhere (except for another select-able text) does not unfocus the text input. When the version is below 9, then clicking anywhere outside the text input should unfocus it.
But then it gets weird with mixed AVM: When the AVM1 movie is loaded into AVM2, clicking on anywhere except for an AVM1 button will unfocus the text input. The version of the AVM1 movie does not matter in this case.
Also, some notes about this behavior in mixed AVM:
When an AVM2 text input is focused on, clicking an AVM1 button will still prevent the focus from being reset. Also in this case, clicking the AVM1 button will still fire the
mouseFocusChangeevent withnullas therelatedObject. However, since the focus hasn't actually reset, clicking the AVM1 button repeatedly will fire the event every time for as long as the text input is in focus.Content Location
A simple test, where a button is covering the entire stage, and a text input is on top:
avm1_textinput_focus.swf.zip
Affected platform
Desktop app
Operating system
macOS Tahoe 26
Browser
No response
Additional information
No response