Salome HOME
First stable version after merging with V3_2_2
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_SewingDlg.cxx
index c68ab240dc8c4f8963eff862f94ef28d953b5d77..db218de9a1c8ba528986fb756f2f25293ca58901 100644 (file)
@@ -956,3 +956,20 @@ bool SMESHGUI_SewingDlg::IsValid()
 {
   return (myOk1 && myOk2 && myOk3 && myOk4 && myOk5 && myOk6);
 }
+
+//=================================================================================
+// function : keyPressEvent()
+// purpose  :
+//=================================================================================
+void SMESHGUI_SewingDlg::keyPressEvent( QKeyEvent* e )
+{
+  QDialog::keyPressEvent( e );
+  if ( e->isAccepted() )
+    return;
+
+  if ( e->key() == Key_F1 )
+    {
+      e->accept();
+      ClickOnHelp();
+    }
+}