48
8
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.
I found ctrl+esc works gmail's hangouts windows close. It may work for other websites too. – Aykut Aras – 2014-10-20T18:21:24.177
2Pressing
Esc
where it has a different effect (e.g. aborting page loading) does not exit full screen. – Daniel Beck – 2011-08-02T15:55:40.800@Daniel: But that doesn't necessarily apply to any other functions. Is this actually a wide spread OS X Lion problem? Why are there so few people that are actually experiencing this? – Tamara Wijsman – 2011-08-29T15:00:23.660
@Tom Please explain; what other functions? – Daniel Beck – 2011-08-29T15:00:55.033
@DanielBeck: It's listed in the question:
ESC
is used for other functions as well. – Tamara Wijsman – 2011-08-29T15:01:18.9631@Tom Such as? The user doesn't say, and neither do you. I could imagine all those functions overriding the full screen mode shortcut when used by e.g. consuming the event, but without more examples, I can't say for sure. – Daniel Beck – 2011-08-29T15:24:23.110
@DanielBeck: The users says "other functions", and that's enough. – Tamara Wijsman – 2011-08-29T15:25:55.463
I, too, am curious what other functions are being trampled on here. And I will say that Full Screen is a new feature, and as with any new feature, there are going to be usability issues. You should file this as a bug with Apple (http://bugreport.apple.com), as I'm not sure its the intended behavior.
– peelman – 2011-09-07T19:04:38.117The user so far failed to provide any example where
Esc
would produce any other effect and exits full screen anyway. The "examples" in @AJACs' answer don't work either, instead showing a sensible behavior in all cases. Down-voting. – Daniel Beck – 2011-09-18T14:50:34.130@TomWijsman Interesting. All examples brought forth so far does not work. Even though there are already two non-answers with "examples" where
Escape
behavior are alleged to be broken, none of them actually behave as described. There's a reason I asked for concrete examples right from the start: There just aren't any. – Daniel Beck – 2011-09-18T14:55:00.36710
Often I press ESC several times to ensure something gets closed. I don't want Safari to exit full-screen mode when that happens. There is already a key command to exit full-screen. ESC shouldn't be used.
@Daniel Beck: You're ignoring the scenario where pressing escape causes windows to leave full screen mode if you tap it accidentally. There's no reason for that. Why are you so violently opposed to this question and a request for a solution? – dpk – 2011-11-03T14:56:29.657
Scenario: A web page uses Javascript to monitor the escape key, used to close divs and the like. Tapping escape leads to Javascript processing the event AND Lion's misbehavior. Is that sufficient? It is a UI mistake to trigger leaving full screen mode on escape. – dpk – 2011-11-03T14:58:35.443
1@dpk Link to a demo web page, please. Since none of the examples mentioned so far have this issue when I tested them, I don't believe that without steps to reproduce the issue. In fact, Fadi's example above contradicts your comment. – Daniel Beck – 2011-11-03T16:00:21.233
@Daniel Beck: Here ya go: http://dpk.net/demonstration-of-escape-problem-in-lion.html . Full screen Safari and then go to that page, click the button, and hit escape to clear the fake dialog. Sorry for the 'tude earlier, bad day.
– dpk – 2011-11-05T01:10:02.737@dpk Hmmm... OK. You could use
.keydown()
andreturn false;
, then it'd be no issue. But this is finally a working example that doesn't play well with fullscreenEsc
, at least. – Daniel Beck – 2011-11-05T07:08:21.580I've edited the post to add this example. Hopefully we'll/someone'll find a way to work around Apple's error here. – dpk – 2011-11-05T16:16:04.280
@dpk I guess I just admitted defeat :-)
– Daniel Beck – 2011-11-17T19:23:05.810Major problem for terminal emulators. It is very common to use the escape key in a terminal session to go back to the previous host screen or exit what you are doing. Apple needs to provide a way to disable escape so other programs can use it. – None – 2011-09-18T14:12:46.867
@Rich As is obvious from Terminal's behavior, programs can disable
Escape
for leaving full screen. iTerm2 also does not close full screen withEscape
. What, in detail, are you referring to? – Daniel Beck – 2011-09-18T14:53:10.850