#4176 Enable Del keyboard shortcut for delete commands

This commit is contained in:
Gaute Lindkvist committed 2019-03-27 11:03:10 +01:00
1 parent f066829a0f
commit 9306961df4
16 files changed
+44 -1

No files matched your search

@@ -80,6 +80,10 @@ bool RiuTreeViewEventFilter::eventFilter(QObject *obj, QEvent *event)
matches = caf::CmdFeatureManager::instance()->commandFeaturesMatchingSubString("Paste");
}
}
else if (keyEvent->matches(QKeySequence::Delete))
{
matches = caf::CmdFeatureManager::instance()->commandFeaturesMatchingKeyboardShortcut(QKeySequence::Delete);
}
for (caf::CmdFeature* feature : matches)
{