mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 16:22:36 -08:00
Enhance Password Editing Fields
* Remove repeat password on entry edit * Move show/hide password and password generator buttons into the field as actions. * Register keyboard shortcut Ctrl+H to toggle password visibility * Register keyboard shortcut Ctrl+G to open the password generator * Cleanup code and improve interactions between elements * Simplify Password Generator button layout; convert advanced mode button to toggle button * Update GUI tests * Fixes #4120
This commit is contained in:
1 parent
1d7ef5d4eb
commit
fe1189ea79
20 files changed
+1459
-1624
No files matched your search
@@ -56,9 +56,6 @@ DatabaseOpenWidget::DatabaseOpenWidget(QWidget* parent)
|
||||
|
||||
m_ui->comboKeyFile->lineEdit()->addAction(m_ui->keyFileClearIcon, QLineEdit::TrailingPosition);
|
||||
|
||||
m_ui->buttonTogglePassword->setIcon(filePath()->onOffIcon("actions", "password-show"));
|
||||
connect(m_ui->buttonTogglePassword, SIGNAL(toggled(bool)), m_ui->editPassword, SLOT(setShowPassword(bool)));
|
||||
connect(m_ui->buttonTogglePassword, SIGNAL(toggled(bool)), m_ui->editPassword, SLOT(setFocus()));
|
||||
connect(m_ui->buttonBrowseFile, SIGNAL(clicked()), SLOT(browseKeyFile()));
|
||||
|
||||
connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(openDatabase()));
|
||||
@@ -166,10 +163,10 @@ void DatabaseOpenWidget::clearForms()
|
||||
{
|
||||
if (!m_isOpeningDatabase) {
|
||||
m_ui->editPassword->setText("");
|
||||
m_ui->editPassword->setShowPassword(false);
|
||||
m_ui->comboKeyFile->clear();
|
||||
m_ui->comboKeyFile->setEditText("");
|
||||
m_ui->checkTouchID->setChecked(false);
|
||||
m_ui->buttonTogglePassword->setChecked(false);
|
||||
m_db.reset();
|
||||
}
|
||||
}
|
||||
@@ -195,7 +192,6 @@ void DatabaseOpenWidget::openDatabase()
|
||||
}
|
||||
|
||||
m_ui->editPassword->setShowPassword(false);
|
||||
m_ui->buttonTogglePassword->setChecked(false);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
m_isOpeningDatabase = true;
|
||||
|
||||
Reference in new issue
Block a user