The first press of backspace stopped thumbnail generation and the second press went back to my previous folder.
Well, it's not correct behaviour from my point of view, and Windows Explorer doesn't behaves in such manner either.
Since we are interrupting in-progress thumbnail generation, that's what I would expect to happen.
Yes, the thumbnails generation was interrupted _by the program_, but what _we_ actually want? We say: "Dear program, please, go back to previous folder, because we pressed Alt+Left". Instead, we are forced to repeat it twice, as for the stubborn person.
Don set the Escape key to stop the generation.
Everything is correct with Escape button, it works as expected. I arguing about Alt+Left and Alt+Up behaviour.
I'm not sure what you'd expect for Go Back. To immediately Go Back on the first press?
Yes, exactly. I expect going back, without repeating this request twice.
XYplorer can't continue generating thumbs and also go back. So I think it's reasonable for XYplorer to first stop the current operation and then go back on the next press ...
From my point of view, the possible fix is quite easy:
Step 1. When user press Alt+Left or Alt+Up or something similar, XYplorer should check if it has thumbnails generation in the current moment of time.
Step 2.
- If "no" - then just perfrom requested action.
- If "yes" - then stop thumbnails generation and then immediately perform requested action.
Of course, I understand, implementation is always harder then theory.