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

[HTML5] Fix focus (again) in Firefox's iframes. #55342

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Nov 26, 2021

This actually makes sense(?), when running inside an iframe the active element might be our canvas, while the iframe itself is not active in the parent window. Since we consume the event, the iframe does not get focused in Firefox (but does in Chromium-based browsers), so we must always call focus to handle such occasions.

Fixes #55248

This actually makes sense(?), when running inside an iframe the active
element might be our canvas, while the iframe itself is not active in
the parent window. Since we consume the event, the iframe does not get
focused in Firefox (but does in Chromium-based browsers), so we must
always call focus to handle such occasions.
@akien-mga akien-mga merged commit 1b9fb5c into godotengine:master Nov 26, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.5.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Nov 26, 2021
@akien-mga
Copy link
Member

Cherry-picked for 3.4.1.

@Faless Faless deleted the js/4.x_input_fix_focus_iframe branch November 26, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Key inputs are randomly lost and non-responsive in web export when hosted in an iframe
2 participants