Commit b9e0d946 authored by Jochen Becher's avatar Jochen Becher

ModelEditor: Use shortcut "Return" for renaming elements

ModelEditor used short cut "F2" for renaming elements which shall be
used for "Goto Definition" in future.

Change-Id: If20b508eca1cf177e2140933ad696e9032d56dc0
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 64760f0a
......@@ -141,7 +141,7 @@ void ActionHandler::createEditPropertiesShortcut(const Core::Id &shortcutId)
auto editAction = new QAction(tr("Edit selected element in properties view"), Core::ICore::mainWindow());
Core::Command *editCommand = Core::ActionManager::registerAction(
editAction, shortcutId, d->context);
editCommand->setDefaultKeySequence(QKeySequence(tr("F2")));
editCommand->setDefaultKeySequence(QKeySequence(tr("Return")));
connect(editAction, &QAction::triggered, this, &ActionHandler::onEditProperties);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment