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

Integrate pointer lock with the permissions API #73

Open
takumif opened this issue May 13, 2024 · 0 comments
Open

Integrate pointer lock with the permissions API #73

takumif opened this issue May 13, 2024 · 0 comments

Comments

@takumif
Copy link

takumif commented May 13, 2024

We (on the Chrome team) are working on putting keyboard lock and pointer lock behind permission prompts (Chrome Platform Status).

One piece of feedback that we got from a first-party developer that uses keyboard lock (Chrome Remote Desktop) is that they'd like to have the permission state exposed via the permissions API so that they can update their UI according to the permission state.

We propose to:

  1. Modify the section Keyboard.lock() to mention optionally showing a permission prompt and rejecting the promise if the permission is denied.

  2. Add a section about integrating with the permissions API, similarly to how other APIs such as window management do.

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

No branches or pull requests

1 participant