You can solve most of the problems by using this tip: https://superuser.com/questions/315949/dont-exit-full-screen-when-pressing-escape-in-apps-like-safari-on-lion

It is basically about installing a userscript (using TamperMonkey or something similar) which intercepts the escape key press.

I have installed this script and it works for most pages. With the exception of previewing attachments in Gmail:

// ==UserScript== // @name Keep Full Screen // @namespace http://superuser.com/q/315949 // @description Prevents Escape key from leaving full screen. // @include * // ==/UserScript== document.onkeydown = function (evt) { if (evt.keyCode == 27) { evt.preventDefault(); console.log('There is no escape'); } };