Fixed deletion of objects/volumes by pressing Del key while the mouse cursor is hovering the objects list in sidebar

This commit is contained in:
enricoturri1966 2021-08-25 09:11:20 +02:00
parent 1c72351ba0
commit d701dfe436

View File

@ -1049,7 +1049,7 @@ void ObjectList::key_event(wxKeyEvent& event)
|| event.GetKeyCode() == WXK_BACK || event.GetKeyCode() == WXK_BACK
#endif //__WXOSX__ #endif //__WXOSX__
) { ) {
remove(); wxGetApp().plater()->remove_selected();
} }
else if (event.GetKeyCode() == WXK_F5) else if (event.GetKeyCode() == WXK_F5)
wxGetApp().plater()->reload_all_from_disk(); wxGetApp().plater()->reload_all_from_disk();