On macOS, when a Firefox window is in OS-level fullscreen (the green button), pressing the ESC key exits fullscreen.
This is inconvenient when you want to use ESC for other actions (e.g., closing a modal, closing the search bar, etc.), because you can accidentally exit fullscreen as well.
Change a setting in about:config.
about:config into Firefox’s address bar and press Enter.browser.fullscreen.exit_on_escape.false.| Preference name | Default | After change |
|---|---|---|
browser.fullscreen.exit_on_escape |
true |
false |