Simple wrapper for cross-browser usage of the JavaScript Fullscreen API
by sindresorhusHTML
Last 12 weeks · 0 commits
4 of 6 standards met
Hello, When binding a function to "change" event, through method, how is it possible to detect either : whether this change event was triggered by pressing ESC key whether the browser is entering or exiting fullscreen mode I couldn't find such information in the object. What I'm trying to achieve is to detect when the browser is exiting fullscreen mode because ESC key was pressed. Thanks for any help, screenfull is great, Mathias
I've used screenfull.js on a digital signage project where the requirement was that the application should be able to reload itself completely (using ) with the application staying in full screen. After some experimentation I settled on an `targetDocument()isFullscreentoggle()targetDocument()` idea useful, I would very much appreciate it being added to the library. If I'm stupid (not unlikely) and have overlooked a more obvious solution please advice.
Repository: sindresorhus/screenfull. Description: Simple wrapper for cross-browser usage of the JavaScript Fullscreen API Stars: 7141, Forks: 682. Primary language: HTML. Languages: HTML (49.6%), JavaScript (37.9%), TypeScript (12.5%). License: MIT. Homepage: https://sindresorhus.com/screenfull Latest release: v6.0.2 (4y ago). Open PRs: 0, open issues: 14. Last activity: 3y ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, oskarrough, Richienb, stormtrooper1859, SidKH, s-h-a-d-o-w, ben-eb, yocontra, gfx and others.