← Back to Home

Prevent Firefox from Exiting Fullscreen on Escape Key Press

By Dmytro Laptiev • October 2, 2025

cover
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:

  1. Open Firefox and type about:config into the address bar.
  2. If prompted, click "Accept the Risk and Continue."
  3. In the search bar, type browser.fullscreen.exit_on_escape.
  4. 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.

Latest Articles