Skip to content

Commit

Permalink
Fixes #37503 : add actions to the tableview so they triggered by shor…
Browse files Browse the repository at this point in the history
…tcut
  • Loading branch information
troopa81 authored and nyalldawson committed Sep 16, 2020
1 parent fb759b0 commit 7bd1017
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgsattributetabledialog.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 7bd1017

Please sign in to comment.