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:
parent
0d721bfb07
commit
b30a6d5883
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue