del key now working again

it was intercepted by the menu shortcut
supermerill/SuperSlicer#1409
Do this thing is necessary on macos?
This commit is contained in:
remi durand 2021-07-31 22:50:11 +02:00
parent ff880ac348
commit e13694766b

View File

@ -1345,7 +1345,7 @@ void MainFrame::init_menubar_as_editor()
_L("Deselects all objects"), [this](wxCommandEvent&) { m_plater->deselect_all(); },
"", nullptr, [this](){return can_deselect() && can_change_view(); }, this);
editMenu->AppendSeparator();
append_menu_item(editMenu, wxID_ANY, _L("&Delete selected") + "\t" + hotkey_delete,
append_menu_item(editMenu, wxID_ANY, _L("&Delete selected") + "\t" + /*hotkey_delete don't use the real escape key, or it will prevent del on some fields*/ "Dèl",
_L("Deletes the current selection"),[this](wxCommandEvent&) { m_plater->remove_selected(); },
"remove_menu", nullptr, [this](){return can_delete() && can_change_view(); }, this);
append_menu_item(editMenu, wxID_ANY, _L("Delete &all") + "\tCtrl+" + hotkey_delete,