mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 00:09:53 -05:00
Save and exit entry editing with Ctrl+Return
When the cursor is on most fields, you can use Return to end editing and save, but on the Notes field Return just changes the line. This commit adds a shortcut to the whole widget to save with Ctrl+Return, so that saving and exiting is quick even when editing notes.
This commit is contained in:
parent
d4ed4f9325
commit
029da87346
@ -98,6 +98,11 @@ void EditEntryWidget::setupMain()
|
||||
m_mainUi->expirePresets->setMenu(createPresetsMenu());
|
||||
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->reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user