mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Give focus to 3D scene when activating any gizmo to allow related imgui dialogs to receive keyboard input
This commit is contained in:
parent
3f44f8177d
commit
82fe571cdc
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue