mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 03:21:49 +08:00
Tech ENABLE_OBJECT_MANIPULATOR_FOCUS - Fixed kill focus handling for sidebar object manipulator fields
This commit is contained in:
parent
2b002da8ce
commit
45335ee26b
@ -1457,8 +1457,8 @@ ManipulationEditor::ManipulationEditor(ObjectManipulation* parent,
|
|||||||
parent->set_focused_editor(nullptr);
|
parent->set_focused_editor(nullptr);
|
||||||
|
|
||||||
#if ENABLE_OBJECT_MANIPULATOR_FOCUS
|
#if ENABLE_OBJECT_MANIPULATOR_FOCUS
|
||||||
// if the widgets exchanging focus are both manipulator fields, call kill_focus
|
// if the widgets loosing focus is a manipulator field, call kill_focus
|
||||||
if (dynamic_cast<ManipulationEditor*>(e.GetEventObject()) != nullptr && dynamic_cast<ManipulationEditor*>(e.GetWindow()) != nullptr)
|
if (dynamic_cast<ManipulationEditor*>(e.GetEventObject()) != nullptr)
|
||||||
#else
|
#else
|
||||||
if (!m_enter_pressed)
|
if (!m_enter_pressed)
|
||||||
#endif // ENABLE_OBJECT_MANIPULATOR_FOCUS
|
#endif // ENABLE_OBJECT_MANIPULATOR_FOCUS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user