mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Give focus to 3D scene when activating any gizmo to allow related imgui dialogs to receive keyboard input
This commit is contained in:
@@ -3092,6 +3092,10 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_gizmos.on_mouse(evt)) {
|
if (m_gizmos.on_mouse(evt)) {
|
||||||
|
if (wxWindow::FindFocus() != this->m_canvas)
|
||||||
|
// Grab keyboard focus for input in gizmo dialogs.
|
||||||
|
m_canvas->SetFocus();
|
||||||
|
|
||||||
if (evt.LeftUp() || evt.MiddleUp() || evt.RightUp())
|
if (evt.LeftUp() || evt.MiddleUp() || evt.RightUp())
|
||||||
mouse_up_cleanup();
|
mouse_up_cleanup();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user