mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Added Esc shortcut and menu item for command deselect all
This commit is contained in:
parent
c4c292168d
commit
14c4469cbf
10 changed files with 55 additions and 18 deletions
|
@ -790,10 +790,13 @@ bool GLGizmosManager::on_char(wxKeyEvent& evt, GLCanvas3D& canvas)
|
|||
// key ESC
|
||||
case WXK_ESCAPE:
|
||||
{
|
||||
if ((m_current != SlaSupports) || !gizmo_event(SLAGizmoEventType::DiscardChanges))
|
||||
reset_all_states();
|
||||
if (m_current != Undefined)
|
||||
{
|
||||
if ((m_current != SlaSupports) || !gizmo_event(SLAGizmoEventType::DiscardChanges))
|
||||
reset_all_states();
|
||||
|
||||
processed = true;
|
||||
processed = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WXK_RETURN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue