Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot press AVM2 buttons with keyboard #19318

Open
n0samu opened this issue Jan 24, 2025 · 0 comments
Open

Cannot press AVM2 buttons with keyboard #19318

n0samu opened this issue Jan 24, 2025 · 0 comments
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working input Issues relating to user input in Flash content

Comments

@n0samu
Copy link
Member

n0samu commented Jan 24, 2025

Describe the bug

#16281 implemented pressing buttons with the Enter and Spacebar keys, but this only seems to work for AVM1 content. This might be because the PR only touched avm1_button, not avm2_button. For example, tabbing between the buttons on Not To Scale's Level Select screen works, and pressing Enter/Spacebar does have a visual effect, but the button's action does not occur. (For example, the mute button doesn't mute the audio, and the credits button doesn't show the credits screen.)
Image

Expected behavior

Pressing the Enter or Spacebar keys when tabbed onto a button should cause the button's click action to occur, just as it does in AVM1 content.

Content Location

Page URL: https://www.newgrounds.com/portal/view/575849/
SWF URL: https://uploads.ungrounded.net/575000/575849_image_puzzle_ng.swf

Affected platform

Self-hosted version

Operating system

Windows 10

Browser

Firefox 134

Additional information

Also occurs on desktop.
For an example of AVM1 content where keyboard control works properly, try Prizma Puzzle Challenges

@n0samu n0samu added A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working input Issues relating to user input in Flash content labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working input Issues relating to user input in Flash content
Projects
None yet
Development

No branches or pull requests

1 participant