]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_ListView.cpp
Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
[modules/shaper.git] / src / ModuleBase / ModuleBase_ListView.cpp
index 52e50fe509c6ffc65079399ca403088fccb562cb..d0a5255d480239e4e16ab12253b1c7e255b49ed5 100644 (file)
@@ -25,6 +25,8 @@
 #include <QClipboard>
 #include <QWidget>
 
+#include <SUIT_ShortcutMgr.h>
+
 #ifndef WIN32
 #include <QResizeEvent>
 #include <QTimer>
@@ -44,9 +46,9 @@ ModuleBase_ListView::ModuleBase_ListView(QWidget* theParent, const QString& theO
 
   myCopyAction = ModuleBase_Tools::createAction(QIcon(":pictures/copy.png"), tr("Copy"),
                           theParent, this, SLOT(onCopyItem()));
-  myCopyAction->setShortcut(QKeySequence::Copy);
   myCopyAction->setEnabled(false);
   myListControl->addAction(myCopyAction);
+  SUIT_ShortcutMgr::get()->registerAction("SHAPER/#TOT_DESK_EDIT_COPY", myCopyAction);
 
   myDeleteAction = ModuleBase_Tools::createAction(QIcon(":pictures/delete.png"), tr("Delete"),
                           theParent, this, SIGNAL(deleteActionClicked()));