Add Shortcut-key information in the context menu when deleting items

This commit is contained in:
Christian Hohnstaedt 2019-12-06 15:09:04 +01:00
parent ba00dd6c7b
commit dc2c2b723d

View File

@ -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()));