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

Add Keyboard Lock API support (Chromium 68+ only) #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

foresee-io
Copy link

This enables web browser to capture key combos, e.g., Alt+F4, Alt+Tab, and send it to web page.

Note: Fullscreen via web browser menu will invalidate this API support. Use full screen button inside the web page instead.

@foresee-io foresee-io closed this Oct 17, 2024
@foresee-io foresee-io reopened this Oct 17, 2024
This enables web browser to capture key combos, e.g., Alt+F4, Alt+Tab, and send it to web page.

Limitations: 1) Chromium 68+ only; 2) User should click full screen button inside the webpage. API won't work when toggling full screen via F11 or browser menu. 3) HTTPS instead of HTTP.

- https://developer.chrome.com/docs/capabilities/web-apis/keyboard-lock
- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/keyboard
@mmcclaskey
Copy link
Collaborator

thank you for the pull request, I've entered an internal ticket and tagged for version 1.17 of Kasm Workspaces, so we will be reviewing and doing something with this soon. This will require a lot of testing across hardware, OS, and browser combinations, also languages and keyboard layouts, in order to determine if this is something we can just blindly do without giving the user the ability to disable or putting more caveats in determining when it is enabled or disabled.

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.

2 participants