Skip to content

Full screen should fully capture keyboard #127

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

Open
ghjm opened this issue Feb 1, 2025 · 3 comments
Open

Full screen should fully capture keyboard #127

ghjm opened this issue Feb 1, 2025 · 3 comments

Comments

@ghjm
Copy link

ghjm commented Feb 1, 2025

When in full screen mode in Chrome 132 on Windows 11, many key combinations such as Alt-Tab, Crtl-Esc and so on, activate local Windows functions rather than being sent to the remote device. When in full screen mode, the keyboard should be fully captured and always sent to the remote device.

@williamjohnstone
Copy link

I am looking at implementing this as part of my PR (#116).

https://developer.mozilla.org/en-US/docs/Web/API/Keyboard_API

"Keyboard locking enables a web page to capture keys that are normally reserved by the user agent or the underlying operating system. The intended use of the Keyboard API is by web applications such as games or remote access apps that provide a fullscreen immersive experience."

@tutman96
Copy link
Contributor

I am looking at implementing this as part of my PR (#116).

https://developer.mozilla.org/en-US/docs/Web/API/Keyboard_API

"Keyboard locking enables a web page to capture keys that are normally reserved by the user agent or the underlying operating system. The intended use of the Keyboard API is by web applications such as games or remote access apps that provide a fullscreen immersive experience."

I've done a similar thing in the past with a tangental bit of software that I wrote: https://github.com/pod-arcade/client-web/blob/main/packages/session/src/components/Keyboard.tsx. It is a bit of complexity to make sure the state is synchronized between being fullscreen and fully capturing the keyboard.

@williamjohnstone
Copy link

Thank you for this @tutman96 I've had a really quick look, and I think it should help with my implementation, I might actually leave it open for another PR tbh, because my work load has changed a lot and not had much time to work on OSS.

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

3 participants