mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-04 18:15:58 -05:00
Add URL auto-type and copy options to auto-type selection popup and menus (#12341)
* Added "Type {URL}" option to the auto-type selection popup right-click context menu
* Added "Copy {URL}" option to the auto-type selection popup right-click context menu
* Added keyboard shortcuts: CTRL+4 for "Type {URL}" and CTRL+SHIFT+4 for "Copy {URL}"
* Updated "Use Virtual Keyboard" shortcut from CTRL+4 to CTRL+5 to avoid inconsistency with order of shortcuts
* Added URL auto-type options "{URL}" and "{URL}{ENTER}" to main window entry view right-click menu
* Added URL auto-type options "{URL}" and "{URL}{ENTER}" to toolbar auto-type button dropdown menu
* Added translation strings for "Type {URL}" and "Copy {URL}" to support internationalization
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: juzu-o <3142026+juzu-o@users.noreply.github.com>
Co-authored-by: Jonathan White <support@dmapps.us>
This commit is contained in:
parent
44cfc20e2b
commit
af753f003e
7 changed files with 105 additions and 17 deletions
|
|
@ -167,6 +167,8 @@ MainWindow::MainWindow()
|
|||
autotypeMenu->addAction(m_ui->actionEntryAutoTypePassword);
|
||||
autotypeMenu->addAction(m_ui->actionEntryAutoTypePasswordEnter);
|
||||
autotypeMenu->addAction(m_ui->actionEntryAutoTypeTOTP);
|
||||
autotypeMenu->addAction(m_ui->actionEntryAutoTypeURL);
|
||||
autotypeMenu->addAction(m_ui->actionEntryAutoTypeURLEnter);
|
||||
m_ui->actionEntryAutoType->setMenu(autotypeMenu);
|
||||
auto autoTypeButton = qobject_cast<QToolButton*>(m_ui->toolBar->widgetForAction(m_ui->actionEntryAutoType));
|
||||
if (autoTypeButton) {
|
||||
|
|
@ -417,6 +419,8 @@ MainWindow::MainWindow()
|
|||
m_ui->actionEntryAutoTypePassword->setIcon(icons()->icon("auto-type"));
|
||||
m_ui->actionEntryAutoTypePasswordEnter->setIcon(icons()->icon("auto-type"));
|
||||
m_ui->actionEntryAutoTypeTOTP->setIcon(icons()->icon("auto-type"));
|
||||
m_ui->actionEntryAutoTypeURL->setIcon(icons()->icon("auto-type"));
|
||||
m_ui->actionEntryAutoTypeURLEnter->setIcon(icons()->icon("auto-type"));
|
||||
m_ui->actionEntryMoveUp->setIcon(icons()->icon("move-up"));
|
||||
m_ui->actionEntryMoveDown->setIcon(icons()->icon("move-down"));
|
||||
m_ui->actionEntryCopyUsername->setIcon(icons()->icon("username-copy"));
|
||||
|
|
@ -556,6 +560,9 @@ MainWindow::MainWindow()
|
|||
m_actionMultiplexer.connect(
|
||||
m_ui->actionEntryAutoTypePasswordEnter, SIGNAL(triggered()), SLOT(performAutoTypePasswordEnter()));
|
||||
m_actionMultiplexer.connect(m_ui->actionEntryAutoTypeTOTP, SIGNAL(triggered()), SLOT(performAutoTypeTOTP()));
|
||||
m_actionMultiplexer.connect(m_ui->actionEntryAutoTypeURL, SIGNAL(triggered()), SLOT(performAutoTypeURL()));
|
||||
m_actionMultiplexer.connect(
|
||||
m_ui->actionEntryAutoTypeURLEnter, SIGNAL(triggered()), SLOT(performAutoTypeURLEnter()));
|
||||
m_actionMultiplexer.connect(m_ui->actionEntryOpenUrl, SIGNAL(triggered()), SLOT(openUrl()));
|
||||
m_actionMultiplexer.connect(m_ui->actionEntryDownloadIcon, SIGNAL(triggered()), SLOT(downloadSelectedFavicons()));
|
||||
#ifdef WITH_XC_SSHAGENT
|
||||
|
|
@ -1003,6 +1010,8 @@ void MainWindow::updateMenuActionState()
|
|||
m_ui->actionEntryAutoTypePassword->setEnabled(singleEntrySelected && dbWidget->currentEntryHasPassword());
|
||||
m_ui->actionEntryAutoTypePasswordEnter->setEnabled(singleEntrySelected && dbWidget->currentEntryHasPassword());
|
||||
m_ui->actionEntryAutoTypeTOTP->setEnabled(singleEntrySelected && dbWidget->currentEntryHasTotp());
|
||||
m_ui->actionEntryAutoTypeURL->setEnabled(singleEntrySelected && dbWidget->currentEntryHasUrl());
|
||||
m_ui->actionEntryAutoTypeURLEnter->setEnabled(singleEntrySelected && dbWidget->currentEntryHasUrl());
|
||||
m_ui->actionEntryAutoTypeTOTP->setVisible(singleEntrySelected && dbWidget->currentEntryHasTotp());
|
||||
m_ui->actionEntryOpenUrl->setEnabled(singleEntryOrEditing && dbWidget->currentEntryHasUrl());
|
||||
m_ui->actionEntryTotp->setEnabled(singleEntrySelected && dbWidget->currentEntryHasTotp());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue