From 44777a7f65922839f650ff6222be42a94ff28aa3 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 20 Apr 2020 18:09:49 +0300 Subject: [PATCH] Issue #3217: Add shortcut for Rename command --- src/XGUI/XGUI_ContextMenuMgr.cpp | 1 + 1 file changed, 1 insertion(+) 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"), -- 2.39.2