Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unify Delete/Backspace behaviour in gizmos with the rest of slicer. A…
…lso,

backspace on macOS in SLA gizmo now deletes points and not the whole object,
which was quite unexpected.
  • Loading branch information
lukasmatena committed May 31, 2021
1 parent 0d721bf commit b30a6d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/slic3r/GUI/Gizmos/GLGizmosManager.cpp
Expand Up @@ -774,11 +774,9 @@ bool GLGizmosManager::on_char(wxKeyEvent& evt)
break;
}

#ifdef __APPLE__
case WXK_BACK: // the low cost Apple solutions are not equipped with a Delete key, use Backspace instead.
#else /* __APPLE__ */

case WXK_BACK:
case WXK_DELETE:
#endif /* __APPLE__ */
{
if ((m_current == SlaSupports || m_current == Hollow) && gizmo_event(SLAGizmoEventType::Delete))
processed = true;
Expand Down

0 comments on commit b30a6d5

Please sign in to comment.