Make Esc in viewer exit fullscreen

This might be a macro rather than a preferences option.

When viewing an image in full screen, I would like 'ESC' to exit full screen mode.
Once in window mode, a ESC would then exit the viewer as it already does.

Go to Settings > Customize Toolbars > Keys and create a new Viewer Hotkey:

2019-10-11%2015-47-41%20Clipboard%20Image

Since Esc is special, you'll need to use the menu on the right of the hotkey field to specify it:

Click Advanced in the command editor to put it into multi-line mode.

Use this as the command:

@if:Show VIEWERCMD=fullscreen
Show VIEWERCMD=fullscreen
@if:else
Show VIEWERCMD=close

(Details also copied to Viewer: Exit full screen mode with Esc key in the Buttons/Scripts area, so it's easier to find.)

3 Likes

This works like a champ!

Thank you

1 Like