Add Return as a keyboard shortcut to open the document for the current row
This commit is contained in:
parent
5fe2096a68
commit
3155179308
@ -510,6 +510,7 @@ void ResTable::init()
|
|||||||
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
tableView->setItemDelegate(new ResTableDelegate(this));
|
tableView->setItemDelegate(new ResTableDelegate(this));
|
||||||
tableView->setContextMenuPolicy(Qt::CustomContextMenu);
|
tableView->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
|
new QShortcut(QKeySequence("Return"), this, SLOT(menuEdit()));
|
||||||
new QShortcut(QKeySequence("Ctrl+o"), this, SLOT(menuEdit()));
|
new QShortcut(QKeySequence("Ctrl+o"), this, SLOT(menuEdit()));
|
||||||
new QShortcut(QKeySequence("Ctrl+Shift+o"), this, SLOT(menuEditAndQuit()));
|
new QShortcut(QKeySequence("Ctrl+Shift+o"), this, SLOT(menuEditAndQuit()));
|
||||||
new QShortcut(QKeySequence("Ctrl+d"), this, SLOT(menuPreview()));
|
new QShortcut(QKeySequence("Ctrl+d"), this, SLOT(menuPreview()));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user