When I press cmd-p in safari the print page shows up.

Escape doesn't work because I've remapped my escape key to esc

How do I exit this without using the mouse or escape?


Normally, use the esc key.

This will dismiss the dialog without using the mouse.

This shortcut work with most dialog boxes in macOS. See this answer for more details.

If one has remapped the esc key, using command+. should dismiss the dialog as well. (Thanks to Steve Chambers' comment.)

  • 1
    Spot on - and used so often I forget that I’ve used it...
    – Solar Mike
    May 21 '18 at 18:20
  • Is there an alternative? I re-mapped ESC to ⌥ESC to prevent Safari exiting full-screen mode when I use it, and so now I can't close the dialogs using this method. May 21 '18 at 18:24
  • 1
    Well, then, perhaps remap another key combination to esc might work.
    – bjbk
    May 21 '18 at 18:27
  • 1
    @bjbk just what I thought about writing until I read yours :)
    – Solar Mike
    May 21 '18 at 18:43
  • 3
    Before Macs has an escape key cancelling was done with Command-Period. And I believe it still works. May 21 '18 at 19:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .