From 2bd8d3777f91f5bd3be6d10d3efb85c74d4678ff Mon Sep 17 00:00:00 2001 From: Julien Cabieces Date: Wed, 16 Sep 2020 16:46:59 +0200 Subject: [PATCH] Fixes #37503 : add actions to the tableview so they triggered by shortcut --- src/app/qgsattributetabledialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/qgsattributetabledialog.cpp b/src/app/qgsattributetabledialog.cpp index 8dd370076f7e..8e2bf1571d30 100644 --- a/src/app/qgsattributetabledialog.cpp +++ b/src/app/qgsattributetabledialog.cpp @@ -119,12 +119,16 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *layer, QgsAttr mActionSelectAll->setShortcuts( QKeySequence::SelectAll ); mActionSelectAll->setShortcutContext( Qt::WidgetWithChildrenShortcut ); + mMainView->addAction( mActionSelectAll ); mActionCopySelectedRows->setShortcuts( QKeySequence::Copy ); mActionCopySelectedRows->setShortcutContext( Qt::WidgetWithChildrenShortcut ); + mMainView->addAction( mActionCopySelectedRows ); mActionCutSelectedRows->setShortcuts( QKeySequence::Cut ); mActionCutSelectedRows->setShortcutContext( Qt::WidgetWithChildrenShortcut ); + mMainView->addAction( mActionCutSelectedRows ); mActionPasteFeatures->setShortcuts( QKeySequence::Paste ); mActionPasteFeatures->setShortcutContext( Qt::WidgetWithChildrenShortcut ); + mMainView->addAction( mActionPasteFeatures ); QgsSettings settings;