From bf94751a94dfa5812df76a520b5f474a52ab8059 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Thu, 29 Nov 2018 15:33:52 +0100 Subject: [PATCH] Esc key toggles off current gizmo --- src/slic3r/GUI/GLCanvas3D.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 906528e0e..71daeede6 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -4412,6 +4412,8 @@ void GLCanvas3D::on_char(wxKeyEvent& evt) // text input switch (keyCode) { + // key ESC + case 27: { m_gizmos.reset_all_states(); m_dirty = true; break; } // key + case 43: { post_event(Event(EVT_GLCANVAS_INCREASE_INSTANCES, +1)); break; } // key - @@ -4451,7 +4453,7 @@ void GLCanvas3D::on_char(wxKeyEvent& evt) if (m_gizmos.handle_shortcut(keyCode, m_selection)) { _update_gizmos_data(); - render(); + m_dirty = true; } else #endif // ENABLE_GIZMOS_SHORTCUT