Toggle fullscreen with a hotkey (voxel.js plugin)
Known issue: leaving fullscreen may release pointer lock (click to re-acquire).
element: the HTML element to fullscreen, defaults to
requestFlags: flags to pass to
requestFullscreen, defaults to
How does this plugin compare to...
...browser menu fullscreening (View - Enter Full Screen in Chrome)? Since this plugin uses the HTML5 Fullscreen API, the document is shown in its entirety, without any extra browser chrome (e.g., tabs).
...game-shell's fullscreen property?
This plugin adds a keybinding, and also sets the fullscreen element to
document.body instead of just the WebGL canvas.