Skip to content

Commit

Permalink
Merge pull request #4351 from chennes/fixSurfaceDeleteShortcuts
Browse files Browse the repository at this point in the history
[Surface] Fix task panel Delete shortcut use to use Widget context
  • Loading branch information
yorikvanhavre committed Feb 2, 2021
2 parents 5e07d70 + 612eba1 commit bdc07a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Surface/Gui/TaskFilling.cpp
Expand Up @@ -272,6 +272,7 @@ FillingPanel::FillingPanel(ViewProviderFilling* vp, Surface::Filling* obj)
// Create context menu
QAction* action = new QAction(tr("Remove"), this);
action->setShortcut(QString::fromLatin1("Del"));
action->setShortcutContext(Qt::WidgetShortcut);
ui->listBoundary->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onDeleteEdge()));
ui->listBoundary->setContextMenuPolicy(Qt::ActionsContextMenu);
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Surface/Gui/TaskFillingEdge.cpp
Expand Up @@ -128,6 +128,7 @@ FillingEdgePanel::FillingEdgePanel(ViewProviderFilling* vp, Surface::Filling* ob
// Create context menu
QAction* action = new QAction(tr("Remove"), this);
action->setShortcut(QString::fromLatin1("Del"));
action->setShortcutContext(Qt::WidgetShortcut);
ui->listUnbound->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onDeleteUnboundEdge()));
ui->listUnbound->setContextMenuPolicy(Qt::ActionsContextMenu);
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Surface/Gui/TaskFillingVertex.cpp
Expand Up @@ -127,6 +127,7 @@ FillingVertexPanel::FillingVertexPanel(ViewProviderFilling* vp, Surface::Filling
// Create context menu
QAction* action = new QAction(tr("Remove"), this);
action->setShortcut(QString::fromLatin1("Del"));
action->setShortcutContext(Qt::WidgetShortcut);
ui->listFreeVertex->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onDeleteVertex()));
ui->listFreeVertex->setContextMenuPolicy(Qt::ActionsContextMenu);
Expand Down

0 comments on commit bdc07a1

Please sign in to comment.