From: vsv Date: Fri, 22 May 2015 13:50:44 +0000 (+0300) Subject: Set focus to list in multi-selector to make possible Tab key using X-Git-Tag: V_1.2.0~111 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0eccfc13f4e3ef04c895a7d070dbd14c7f08ddca;p=modules%2Fshaper.git Set focus to list in multi-selector to make possible Tab key using --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 312183b9e..21518852c 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -336,6 +336,11 @@ void ModuleBase_WidgetMultiSelector::onSelectionChanged() // the updateObject method should be called to flush the updated sigal. The workshop listens it, // calls validators for the feature and, as a result, updates the Apply button state. updateObject(myFeature); + + // Set focus to List control in order to make possible + // to use Tab key for transfer the focus to next widgets + myListControl->setCurrentRow(myListControl->model()->rowCount() - 1); + myListControl->setFocus(); } //********************************************************************