Skip to content

HTMLMesh: Add support for input of type text and number in VR #31160

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

vincentfretin
Copy link
Contributor

Description

Add support for input of type text and number, calling input.focus() to bring the system keyboard in VR.
See https://latest.developers.meta.com/horizon/documentation/web/webxr-keyboard/
Note that on Meta browser 38.4 for input of type number it brings the wrong keyboard in an immersive session, while it brings the correct numeric keyboard when you're not in a immersive session. I reported it pressing 5 times the meta button.

I did the PR initially in AdaRoseCannon/aframe-htmlmesh#25 that also includes an example.

…t.focus() to bring the system keyboard in VR
@vincentfretin
Copy link
Contributor Author

You have the live example here https://ada.is/aframe-htmlmesh/ if you want to test with Meta browser on Quest 2, 3, 3S devices.

@Mugen87 Mugen87 added this to the r177 milestone May 27, 2025
@Mugen87 Mugen87 merged commit 7cb0f65 into mrdoob:dev May 27, 2025
11 checks passed
@vincentfretin vincentfretin deleted the support-for-input-text-number branch May 28, 2025 11:39
@mrdoob
Copy link
Owner

mrdoob commented May 30, 2025

Note that on Meta browser 38.4 for input of type number it brings the wrong keyboard in an immersive session, while it brings the correct numeric keyboard when you're not in a immersive session. I reported it pressing 5 times the meta button.

FYI @cabanier

@vincentfretin
Copy link
Contributor Author

Note that on Meta browser 38.4 for input of type number it brings the wrong keyboard in an immersive session, while it brings the correct numeric keyboard when you're not in a immersive session. I reported it pressing 5 times the meta button.

FYI @cabanier

He's aware. I shared the issue with him on Discord WebXR aframe channel.
https://discord.com/channels/758943204715659264/759166287901098024/1376956657266851930

rc: Apparently, we never supported the custom keyboards in webxr

@cabanier
Copy link
Contributor

Yes, one of my team members is working on supporting this.

RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants