Prevent Firefox from Exiting Fullscreen on Escape Key Press
By Dmytro Laptiev • October 2, 2025

Firefox
MacOS
After setting up my new MacBook and reinstalling Firefox, I noticed an annoying issue -pressing the Escape key would immediately exit fullscreen mode. This felt like a strange default behavior since Escape is often used to close modals or dismiss dialogs, not to leave fullscreen.
Fortunately, there's a simple fix:
- Open Firefox and type about:config into the address bar.
- If prompted, click "Accept the Risk and Continue."
- In the search bar, type browser.fullscreen.exit_on_escape.
- Set it to false by clicking the toggle button on the right.
Now, pressing Escape will no longer exit fullscreen mode, letting you use it freely without interruptions.
