diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 304890d..6293cca 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -203,10 +203,12 @@ MainWindow::MainWindow(QSettings &settings, Dialogs::QtSettings *qtSettings, QWi // -> add/remove account connect(m_ui->actionAddAccount, &QAction::triggered, this, &MainWindow::addAccount); connect(m_ui->actionAddCategory, &QAction::triggered, this, &MainWindow::addCategory); - connect(m_ui->actionRemoveRows, &QAction::triggered, this, &MainWindow::removeEntry); + connect(m_ui->actionRemoveAccount, &QAction::triggered, this, &MainWindow::removeEntry); // -> insert/remove fields connect(m_ui->actionInsertRow, &QAction::triggered, this, &MainWindow::insertRow); - connect(m_ui->actionRemoveAccount, &QAction::triggered, this, &MainWindow::removeRows); + connect(m_ui->actionRemoveRows, &QAction::triggered, this, &MainWindow::removeRows); + connect(m_ui->actionCopyFields, &QAction::triggered, this, &MainWindow::copyFields); + connect(m_ui->actionPasteFields, &QAction::triggered, this, &MainWindow::insertFieldsFromClipboard); // -> undo/redo connect(m_ui->actionUndo, &QAction::triggered, m_undoStack, &QUndoStack::undo); connect(m_ui->actionRedo, &QAction::triggered, m_undoStack, &QUndoStack::redo); diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui index 4205698..8bff526 100644 --- a/gui/mainwindow.ui +++ b/gui/mainwindow.ui @@ -183,7 +183,7 @@ 0 0 848 - 26 + 21 @@ -231,6 +231,8 @@ + + @@ -381,6 +383,9 @@ Remove selected entry + + Ctrl+Shift+Del + @@ -388,7 +393,10 @@ .. - &Insert field + &Insert new field + + + Ctrl+I @@ -399,6 +407,9 @@ Remove selected &field(s) + + Ctrl+Del + @@ -408,6 +419,9 @@ &Password generator + + Ctrl+G + @@ -431,6 +445,9 @@ Export passwords to plain text files + + Ctrl+E + @@ -452,6 +469,9 @@ &Undo + + Ctrl+Z + @@ -464,6 +484,9 @@ &Redo + + Ctrl+Shift+Z + @@ -473,6 +496,9 @@ Add &new category + + Ctrl+Shift+C + @@ -481,6 +507,9 @@ &Show undo stack + + Ctrl+U + @@ -515,6 +544,28 @@ &Qt settings + + + + + + Copy selected field(s) + + + Ctrl+C + + + + + + + + Paste to selected field(s) + + + Ctrl+V + +