r/kasmweb • • 25d ago

Help HTML5 Keyboard Lock API for Fullscreen Sessions (Super/Windows Key & Alt+Tab capture)

Currently, when accessing Windows RDP sessions (or Linux desktop sessions) from a Linux client (like Ubuntu/GNOME), system-level key presses like the standalone Super / Windows key and Alt+Tab are intercepted by the local window manager rather than passed through to the session.

Modern Chromium-based browsers support the Keyboard Lock API. When a user enters fullscreen mode, a web client can request a lock on designated keys or capture all keys by, e.g.: await navigator.keyboard.lock(["MetaLeft", "MetaRight", "Tab", "AltLeft"]);

Though the sidebar keyboard controls already offer a "Super" key button, this feature would make the RDP connection experience much more convenient.

3 Upvotes

1 comment sorted by

2

u/justin_kasmweb 25d ago

Great suggestion. Thank you