mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 18:59:02 +08:00
Esc key toggles off current gizmo
This commit is contained in:
parent
42b70c4933
commit
bf94751a94
@ -4412,6 +4412,8 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
|||||||
// text input
|
// text input
|
||||||
switch (keyCode)
|
switch (keyCode)
|
||||||
{
|
{
|
||||||
|
// key ESC
|
||||||
|
case 27: { m_gizmos.reset_all_states(); m_dirty = true; break; }
|
||||||
// key +
|
// key +
|
||||||
case 43: { post_event(Event<int>(EVT_GLCANVAS_INCREASE_INSTANCES, +1)); break; }
|
case 43: { post_event(Event<int>(EVT_GLCANVAS_INCREASE_INSTANCES, +1)); break; }
|
||||||
// key -
|
// key -
|
||||||
@ -4451,7 +4453,7 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
|||||||
if (m_gizmos.handle_shortcut(keyCode, m_selection))
|
if (m_gizmos.handle_shortcut(keyCode, m_selection))
|
||||||
{
|
{
|
||||||
_update_gizmos_data();
|
_update_gizmos_data();
|
||||||
render();
|
m_dirty = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user