From 0eccfc13f4e3ef04c895a7d070dbd14c7f08ddca Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 22 May 2015 16:50:44 +0300 Subject: [PATCH] Set focus to list in multi-selector to make possible Tab key using --- src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); } //******************************************************************** -- 2.39.2