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 b968a54cea
commit 0d963686cc

View File

@ -506,6 +506,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()));