ENH: delete objects/parts by back key on macOS

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I4fb5a940955a3f165fe61b7499509c5c72c53460
This commit is contained in:
yifan.wu 2022-10-16 20:38:33 +08:00 committed by Lane.Wei
parent f3c65f8597
commit 368badd225
2 changed files with 5 additions and 2 deletions

View file

@ -181,8 +181,7 @@ ObjectList::ObjectList(wxWindow* parent) :
entries[index++].Set(wxACCEL_CTRL, (int)'A', wxID_SELECTALL);
entries[index++].Set(wxACCEL_CTRL, (int)'Z', wxID_UNDO);
entries[index++].Set(wxACCEL_CTRL, (int)'Y', wxID_REDO);
entries[index++].Set(wxACCEL_NORMAL, WXK_DELETE, wxID_DELETE);
//entries[index++].Set(wxACCEL_NORMAL, WXK_BACK, wxID_DELETE);
entries[index++].Set(wxACCEL_NORMAL, WXK_BACK, wxID_DELETE);
//entries[index++].Set(wxACCEL_NORMAL, int('+'), wxID_ADD);
//entries[index++].Set(wxACCEL_NORMAL, WXK_NUMPAD_ADD, wxID_ADD);
//entries[index++].Set(wxACCEL_NORMAL, int('-'), wxID_REMOVE);