mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Merge pull request #8 from daniellandau/save-with-ctrl-return
Save entry with ctrl+return keyboard shortcut
This commit is contained in:
commit
2146392a2f
@ -98,6 +98,11 @@ void EditEntryWidget::setupMain()
|
|||||||
m_mainUi->expirePresets->setMenu(createPresetsMenu());
|
m_mainUi->expirePresets->setMenu(createPresetsMenu());
|
||||||
connect(m_mainUi->expirePresets->menu(), SIGNAL(triggered(QAction*)), this, SLOT(useExpiryPreset(QAction*)));
|
connect(m_mainUi->expirePresets->menu(), SIGNAL(triggered(QAction*)), this, SLOT(useExpiryPreset(QAction*)));
|
||||||
|
|
||||||
|
QAction *action = new QAction(this);
|
||||||
|
action->setShortcut(Qt::CTRL | Qt::Key_Return);
|
||||||
|
connect(action, SIGNAL(triggered()), this, SLOT(saveEntry()));
|
||||||
|
this->addAction(action);
|
||||||
|
|
||||||
m_mainUi->passwordGenerator->hide();
|
m_mainUi->passwordGenerator->hide();
|
||||||
m_mainUi->passwordGenerator->reset();
|
m_mainUi->passwordGenerator->reset();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user