Unify Delete/Backspace behaviour in gizmos with the rest of slicer. Also,

backspace on macOS in SLA gizmo now deletes points and not the whole object,
which was quite unexpected.
This commit is contained in:
Lukas Matena 2021-05-31 11:48:12 +02:00
parent 0d721bfb07
commit b30a6d5883

View file

@ -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;