From dc2c2b723d42e73aa89c35ed3f3c35e12934e5c9 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Fri, 6 Dec 2019 15:09:04 +0100 Subject: [PATCH] Add Shortcut-key information in the context menu when deleting items --- widgets/XcaTreeView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/XcaTreeView.cpp b/widgets/XcaTreeView.cpp index b5c0ce3f..26c76b02 100644 --- a/widgets/XcaTreeView.cpp +++ b/widgets/XcaTreeView.cpp @@ -411,7 +411,8 @@ void XcaTreeView::showContextMenu(QContextMenuEvent *e, menu->addAction(tr("Properties"), this, SLOT(editComment())); } if (indexes.size() > 0) { - menu->addAction(tr("Delete"), this, SLOT(deleteItems())); + menu->addAction(tr("Delete"), this, SLOT(deleteItems()), + QKeySequence::Delete); subExport = menu->addMenu(tr("Export")); subExport->addAction(tr("Clipboard"), this, SLOT(pem2clipboard()));