mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-18 04:25:57 +08:00
SPE-2514: Prevents focusing on the menu bar when ALT is pressed in painting gizmos.
This commit is contained in:
parent
ef89fb3af8
commit
5229510346
@ -3146,7 +3146,13 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
|
||||
}
|
||||
}
|
||||
|
||||
if (keyCode != WXK_TAB
|
||||
const GLGizmosManager::EType gizmo_type = m_gizmos.get_current_type();
|
||||
if (keyCode == WXK_ALT && (gizmo_type == GLGizmosManager::FdmSupports ||
|
||||
gizmo_type == GLGizmosManager::Seam ||
|
||||
gizmo_type == GLGizmosManager::MmuSegmentation)) {
|
||||
// Prevents focusing on the menu bar when ALT is pressed in painting gizmos (FdmSupports, Seam, and MmuSegmentation).
|
||||
evt.Skip(false);
|
||||
} else if (keyCode != WXK_TAB
|
||||
&& keyCode != WXK_LEFT
|
||||
&& keyCode != WXK_UP
|
||||
&& keyCode != WXK_RIGHT
|
||||
|
Loading…
x
Reference in New Issue
Block a user