sindresorhus / screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API
https://sindresorhus.com/screenfull
MIT License
7.08k stars 698 forks source link

Detect when I press F11 in Chrome #177

Closed mugnap closed 4 years ago

mugnap commented 4 years ago

Hello, I've find an issue with screenfull: even in your sample (https://sindresorhus.com/screenfull.js/) when I press F11 on Chrome (Windows) to go in Full Screen mode, you don't detect that we're in full screen (you still write "Is fullscreen: false"). How can I detect when F11 is pressed to enter (or exit) the full screen mode? Thanks

sindresorhus commented 4 years ago

Duplicate of #26