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

keyboard.getLayoutMap() throws an exception in iFrame on Chrome #4570

Merged

Conversation

rawnsley
Copy link
Contributor

@rawnsley rawnsley commented Aug 25, 2021

If you host Hubs in an iframe you get a console error from keyboard.getLayoutMap():

Screenshot 2021-08-25 at 10 50 19

I can't find any definitive reference to this behaviour, but here is an example fix in another code base.

Downgrading this to a warning with an explicit message at least stops us having to think about it every time it happens. The fact that keyboard remapping will not work inside an iframe on Chrome is going to be harder to actually fix.

┆Issue is synchronized with this Jira Task

Copy link
Contributor

@netpro2k netpro2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for flagging this.

@netpro2k netpro2k merged commit e8ad2c6 into Hubs-Foundation:master Sep 2, 2021
@rawnsley rawnsley deleted the keyboard-getLayoutMap-iframe branch September 2, 2021 07:35
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.

3 participants