window: Add shortcut for adding collections
This commit is contained in:
@@ -49,4 +49,13 @@ Adw.ShortcutsDialog shortcuts_dialog {
|
|||||||
accelerator: "Delete";
|
accelerator: "Delete";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Adw.ShortcutsSection {
|
||||||
|
title: _("Collections");
|
||||||
|
|
||||||
|
Adw.ShortcutsItem {
|
||||||
|
title: _("Add Collection");
|
||||||
|
accelerator: "<Control><Shift>n";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ template $Window: Adw.ApplicationWindow {
|
|||||||
action: "action(win.add)";
|
action: "action(win.add)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Shortcut {
|
||||||
|
trigger: "<Control><Shift>n";
|
||||||
|
action: "action(win.add-collection)";
|
||||||
|
arguments: "''";
|
||||||
|
}
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
trigger: "<Control>z";
|
trigger: "<Control>z";
|
||||||
action: "action(win.undo)";
|
action: "action(win.undo)";
|
||||||
|
|||||||
Reference in New Issue
Block a user