Salome HOME
Add comment to a code
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.cpp
index 242773ea366dc27977e591f58d7e1a1237903abc..ac02f684cd3cb96f67a2332a9c48cc274e8a2964 100644 (file)
@@ -867,6 +867,8 @@ void PartSet_WidgetSketchLabel::onShowDOF()
     static const Events_ID anEvent = Events_Loop::eventByName(EVENT_GET_DOF_OBJECTS);
     ModelAPI_EventCreator::get()->sendUpdated(aCompFeature, anEvent);
     Events_Loop::loop()->flush(anEvent);
+
+    // Transfer focus to the current viewport for correct processing of a key event
     QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
     if (aViewPort)
       aViewPort->setFocus();