mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 07:49:50 -05:00
Add feature to sort groups using shortcut keys (#6999)
* Register Ctrl + Down to sort A->Z and Ctrl + Up to sort Z->A
This commit is contained in:
parent
6d1fc31e96
commit
405d3ee1ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user