I have Startup set to Normal & Interface>Keyboard>'Pressing Esc once quits XnViewMp' to Never. Yet when I open an image and hit esc XnView closes. My desired behavior is that esc should do nothing if not in fullscreen mode (the standard behavior of 99% of other programs (chrome, vlc, firefox, notepad, photoshop, word, etc.)), or alternatively open the current tab/image in the Browser. It is very unnatural for esc to close an application without warning. It the very least there should be a one-time 'Do you want to quit?/Remember my answer?' dialog if people want to keep this behavior. I understand esc is acceptable to close windows that are fullscreen, but not to quit a windowed application.
This posts alludes to a hidden setting in classic but does not mention how to enable it or if it is available in MP viewtopic.php?f=35&t=17078&p=163032&hilit=esc#p163032.
Disable Quit on Esc
Moderators: helmut, XnTriq, xnview, Dreamer
-
- Posts: 132
- Joined: Fri Mar 06, 2020 1:28 pm
Re: Disable Quit on Esc
It's in Settings/Interface/Keyboard
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2
- Joined: Tue Mar 29, 2022 3:11 pm
Re: Disable Quit on Esc
I specifically mentioned that I have Interface>Keyboard>'Pressing Esc once quits XnViewMp' set to Never. That option is only used when opening XnView directly, not when double clicking an image which opens XnView in 'normal' mode.
-
- Moderator
- Posts: 8581
- Joined: Sun Oct 12, 2003 6:47 pm
- Location: Frankfurt, Germany
Re: Disable Quit on Esc
EDIT: I've just retried and reread your post. The key to reproduce the behaviour is setting "General | General | Mode when starting with a file: "Normal". When using this setting I could reproduce your problem. Not 100% sure but to me this looks like a bug. 
___
Thank you for your problem report, evolut1010. I've just tried out using XnView MP 0.99.7 on Windows 10 and experienced the following behaviour:
1. Start Windows Explorer and browse a folder with JPEG image files.
2. Double-click in JPEG image file. (Previously, XnView MP was associated to JPEG files).
3. XnView MP starts and image is shown in Fullscreen.
4. I press "Esc".
--> Fullscreen is closed and XnView switches to browser mode.
I've changed various settings (e.g. deactivated "Launch browser at startup") but I couldn't reproduce the behaviour that you describe above. Could you perhaps try and reset your XnView configuration (see topic MP: How to reset program configuration)?

___
Thank you for your problem report, evolut1010. I've just tried out using XnView MP 0.99.7 on Windows 10 and experienced the following behaviour:
1. Start Windows Explorer and browse a folder with JPEG image files.
2. Double-click in JPEG image file. (Previously, XnView MP was associated to JPEG files).
3. XnView MP starts and image is shown in Fullscreen.
4. I press "Esc".
--> Fullscreen is closed and XnView switches to browser mode.
I've changed various settings (e.g. deactivated "Launch browser at startup") but I couldn't reproduce the behaviour that you describe above. Could you perhaps try and reset your XnView configuration (see topic MP: How to reset program configuration)?
-
- Author of XnView
- Posts: 37889
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France