Add Return as a keyboard shortcut to open the document for the current row

This commit is contained in:
Jean-Francois Dockes
2019-07-07 19:12:38 +02:00
parent 5fe2096a68
commit 3155179308
+1
View File
@@ -510,6 +510,7 @@ void ResTable::init()
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
tableView->setItemDelegate(new ResTableDelegate(this));
tableView->setContextMenuPolicy(Qt::CustomContextMenu);
new QShortcut(QKeySequence("Return"), this, SLOT(menuEdit()));
new QShortcut(QKeySequence("Ctrl+o"), this, SLOT(menuEdit()));
new QShortcut(QKeySequence("Ctrl+Shift+o"), this, SLOT(menuEditAndQuit()));
new QShortcut(QKeySequence("Ctrl+d"), this, SLOT(menuPreview()));