In OS X Lion, pressing the ESC key exits full screen mode. Unfortunately, and especially when using Safari, ESC is used for other functions, such as in Javascript keystroke event handling. I don't want Lion to exit full screen mode when pressing escape, but I can't find a place to disable that functionality.
I already know the keyboard shortcut to Enter/exit full screen mode (Cmd–Ctrl–F). I want to disable the ESC shortcut. I've been Googling, but cannot find any answers.
Best Answer
For web browsers, and specifically for use of sites with behavior that enables or requires use of the
Escape
key while not preventing closing of full screen (like Stack Exchange sites), you can use the following user script:To run this in browsers, use any user script engine for your browser.