From: vsv Date: Mon, 20 Apr 2020 15:09:49 +0000 (+0300) Subject: Issue #3217: Add shortcut for Rename command X-Git-Tag: V9_6_0a1~60^2~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=44777a7f65922839f650ff6222be42a94ff28aa3;p=modules%2Fshaper.git Issue #3217: Add shortcut for Rename command --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index fe220b657..7953564af 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -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"),