diff --git a/src/gui/group/GroupView.cpp b/src/gui/group/GroupView.cpp index 83d737bc87..6024de5f10 100644 --- a/src/gui/group/GroupView.cpp +++ b/src/gui/group/GroupView.cpp @@ -45,6 +45,13 @@ GroupView::GroupView(Database* db, QWidget* parent) new QShortcut(Qt::CTRL + Qt::Key_F10, this, SLOT(contextMenuShortcutPressed()), nullptr, Qt::WidgetShortcut); + // keyboard shortcuts to sort children of a group + auto shortcut = new QShortcut(Qt::CTRL + Qt::Key_Down, this); + connect(shortcut, &QShortcut::activated, this, [this]() { sortGroups(false); }); + + shortcut = new QShortcut(Qt::CTRL + Qt::Key_Up, this); + connect(shortcut, &QShortcut::activated, this, [this]() { sortGroups(true); }); + modelReset(); setDragEnabled(true);