Created
May 8, 2026 14:35
-
-
Save jrmuizel/479342cc581b8de050811ddeccc7eb3e to your computer and use it in GitHub Desktop.
keyboard lock tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <title>navigator.keyboard.lock polyfill</title> | |
| <body> | |
| <button onclick="navigator.keyboard.lock();">lock</button> | |
| <button onclick="navigator.keyboard.unlock()">unlock</button> | |
| <button onclick="document.body.requestFullscreen({keyboardLock: 'browser'})">fullscreen/ w lock</button> | |
| <button onclick="document.body.requestFullscreen();">fullscreen</button> | |
| <button onclick="document.exitFullscreen();">exit fullscreen</button> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment