Add Escape key shortcut and subfolder prompt for folder drops

Escape now goes to previous wizard step (cancel/go back). When
a folder with subfolders is dropped on the images step, an alert
dialog asks whether to include subfolder images. The choice is
remembered for the rest of the session.
This commit is contained in:
2026-03-06 13:45:06 +02:00
parent fa7a8f54bb
commit 0ca15536ae
2 changed files with 139 additions and 7 deletions

View File

@@ -119,7 +119,7 @@ pub fn build_app() -> adw::Application {
fn setup_shortcuts(app: &adw::Application) {
app.set_accels_for_action("win.next-step", &["<Alt>Right"]);
app.set_accels_for_action("win.prev-step", &["<Alt>Left"]);
app.set_accels_for_action("win.prev-step", &["<Alt>Left", "Escape"]);
app.set_accels_for_action("win.process", &["<Control>Return"]);
for i in 1..=9 {
app.set_accels_for_action(