-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Check exitVR property of keyboard-shortcuts to enable Escape shortcut #5512
Conversation
Interesting. In what scenario did you notice the inconsistency? On desktop fullscreen, the esc key is the browser standard shortcut to exit. On mobile it doesn't apply. In headset each system has a different way to disengage immersive mode, usually with controllers or hand tracking where keyboard is not avail. Wondering if we should revisit the logic |
I do occasionally use a Bluetooth keyboard with the Quest and also sometimes use PCVR to record WebXR sessions. In both cases the keyboard remains available to the user while in session. But that wasn't actually how I discovered it, that was simply through the immersive web emulator. I customized the enter-vr experience and disabled the shortcut to prevent people from skipping it. At that point I noticed this also prevented me from hitting escape to exit the emulated WebXR session. |
Wonder if |
Are there scenarios where one wants one are not the other (exit / enter)? |
It's pretty much redundant for fullscreen on desktop (although the spec doesn't seem to prescribe Escape, just that "User agents should provide a means of exiting fullscreen that always works")
It's not uncommon to have some steps before entering a session (e.g. selecting an avatar, typing a name, etc...), in which case just disabling the enter vr shortcut makes sense. |
For the sake of simplicity can we just keep it to one property? When concrete limitations arise we can add a second one. Not sure how much the shortcuts are actually used today. |
There are two distinct questions:
While I can't comment on how often people use them, I do use exit-vr (esc) on a daily basis with the emulator. Wanting to disable the enter-vr shortcut lead to both being disabled, which contradicts both the name ( |
I sometimes inadvertently press "f" because it's too close to "d" key. |
Thanks for this and for the patience |
Description:
Noticed that the
keyboard-shortcuts
component only had an option to disable theenterVR
shortcut, but it actually disabled both the enter and exit shortcuts. This doesn't match the documentation nor the user's expectation, so this PR splits it into aenterVR
andexitVR
property to configure the enter and exit shortcuts respectively.Changes proposed:
exitVR
property tokeyboard-shortcuts
similar to the existingenterVR
property