]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3217: Add shortcut for Rename command
authorvsv <vsv@opencascade.com>
Mon, 20 Apr 2020 15:09:49 +0000 (18:09 +0300)
committervsv <vsv@opencascade.com>
Mon, 20 Apr 2020 15:09:49 +0000 (18:09 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp

index fe220b6578c83044f9938a0b15e9f4329e7be525..7953564af478d2acb879cd5d44b216a6c95f06fa 100644 (file)
@@ -94,6 +94,7 @@ void XGUI_ContextMenuMgr::createActions()
 
   aAction = ModuleBase_Tools::createAction(QIcon(":pictures/rename_edit.png"), tr("Rename"),
                                            aDesktop, this, SLOT(onRename()));
+  aAction->setShortcut(Qt::Key_F2);
   addAction("RENAME_CMD", aAction);
 
   aAction = ModuleBase_Tools::createAction(QIcon(":pictures/move_to_end.png"),