From: nds Date: Fri, 26 May 2017 17:03:34 +0000 (+0300) Subject: Issues #2173, #2169: key release processing in global events listener(processing... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_UNDOCKED_PROPERTY_PANEL;p=modules%2Fshaper.git Issues #2173, #2169: key release processing in global events listener(processing Tab/Backward Tab) Circle, creation by three points click does not activate the first point control --- diff --git a/src/ModuleBase/ModuleBase_ModelWidget.cpp b/src/ModuleBase/ModuleBase_ModelWidget.cpp index 3194f9afc..01eeccac4 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.cpp +++ b/src/ModuleBase/ModuleBase_ModelWidget.cpp @@ -428,10 +428,10 @@ bool ModuleBase_ModelWidget::eventFilter(QObject* theObject, QEvent *theEvent) bool isWinFocus = aFocusEvent->reason() == Qt::ActiveWindowFocusReason; #endif Qt::FocusReason aReason = aFocusEvent->reason(); - bool aMouseOrKey = aReason == Qt::MouseFocusReason/* || - //aReason == Qt::TabFocusReason || - //aReason == Qt::BacktabFocusReason /*|| - aReason == Qt::OtherFocusReason*/; // to process widget->setFocus() + bool aMouseOrKey = aReason == Qt::MouseFocusReason || + /*aReason == Qt::TabFocusReason || + //aReason == Qt::BacktabFocusReason ||*/ + aReason == Qt::OtherFocusReason; // to process widget->setFocus() if (aMouseOrKey && getControls().contains(aWidget)) { //if (getControls().contains(aWidget)) { emitFocusInWidget();