Hi, and sorry for the late reply, I had to go offline…
admin wrote: ↑21 Jul 2023 11:58That's all fine. But I'm still weary. Probably because I don't get the idea. What is this script doing? Why is it moving the focus? Why is it waiting for the user to press ESC?
Script:
Slideshow which, behind the scenes, creates a new tab with only images and various optional settings (/flatfiles…), and then proceeds to show them one by one (sel+1) in the chosen preview.
It can then end in 2 ways:
1. Last image is reached
⭢ The script closes the preview, closes its slideshow tab, and restores whatever setting necessary (eg sort order if random…).
2. User pressed ESC ⭢ either:
FP: Fullscreen or windowed previews are closed (by XYplorer) ⭢ the script detects that (because focus is no longer "X"), so it properly ends the slideshow by closing its pane, resetting settings, etc.
PP: Preview is not closed; instead the script is terminated, leaving everything as is.
NB: It wasn’t moving the focus before. I requested the focus "P" for eg slideshow in Windowed preview if the user clicks on different images during the slideshow (focus goes to L), in which case a subsequent ESC still closes the preview but also terminates the script abruptly (leaving the tab open, etc.). Hence, my hope was to have the different previews behave in a more similar way.
—————————
TLDR;
Sorry for the lack of clarity of my request…
But unfortunately it seems the new option doesn’t change much:
In PP, ESC hides the preview image, while still leaving the focus in its pane ("X").
The rephrased request would be (regardless of the preview image/pane visibility):
Could the first ESC in PP behave more like in both FP, and switch the focus back to what was active before (if easily doable), or simply switch to "L" if easier?
Thank you for your patience
