From dff2e776460fc98e6b234181479ec680a91e9623 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 9 Apr 2020 12:44:42 +0300 Subject: [PATCH] Add comment to a code --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 242773ea3..ac02f684c 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -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(); -- 2.39.2