mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-29 00:47:32 -04: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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue