window: Add shortcut for adding collections

This commit is contained in:
Jamie Gravendeel
2025-12-26 16:04:09 +01:00
parent 453eca9122
commit 8cc56b445e
2 changed files with 15 additions and 0 deletions

View File

@@ -49,4 +49,13 @@ Adw.ShortcutsDialog shortcuts_dialog {
accelerator: "Delete";
}
}
Adw.ShortcutsSection {
title: _("Collections");
Adw.ShortcutsItem {
title: _("Add Collection");
accelerator: "<Control><Shift>n";
}
}
}

View File

@@ -21,6 +21,12 @@ template $Window: Adw.ApplicationWindow {
action: "action(win.add)";
}
Shortcut {
trigger: "<Control><Shift>n";
action: "action(win.add-collection)";
arguments: "''";
}
Shortcut {
trigger: "<Control>z";
action: "action(win.undo)";