Fix for - Takes focus away from input box when moving cursor to plater

Take focus away only, if ObjectList was focused, when mouse cursor is moved to 3d-Scene
This commit is contained in:
YuSanka 2022-08-29 15:18:34 +02:00
parent 9e65fc1cac
commit 656a1d262a
3 changed files with 9 additions and 43 deletions

View file

@ -1442,12 +1442,7 @@ ManipulationEditor::ManipulationEditor(ObjectManipulation* parent,
{
parent->set_focused_editor(nullptr);
#if ENABLE_OBJECT_MANIPULATOR_FOCUS
// if the widgets loosing focus is a manipulator field, call kill_focus
if (dynamic_cast<ManipulationEditor*>(e.GetEventObject()) != nullptr)
#else
if (!m_enter_pressed)
#endif // ENABLE_OBJECT_MANIPULATOR_FOCUS
kill_focus(parent);
e.Skip();