FIX: clone shortcut key conflict with quit in macos

jira: STUDIO-5166

Change-Id: I548f275bb68d3b0e6bb3cfad6fe93df09d507da3
This commit is contained in:
liz.li 2023-11-08 15:07:01 +08:00 committed by Lane.Wei
parent 6ab1ee22eb
commit 433a4b2a7f
2 changed files with 2 additions and 2 deletions

View File

@ -3097,7 +3097,7 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
#endif /* __APPLE__ */
post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE_ALL));
break;
case WXK_CONTROL_Q:
case WXK_CONTROL_K:
post_event(SimpleEvent(EVT_GLTOOLBAR_CLONE));
break;
default: evt.Skip();

View File

@ -1465,7 +1465,7 @@ void MenuFactory::append_menu_item_clone(wxMenu* menu)
#else
static const wxString ctrl = _L("Ctrl+");
#endif
append_menu_item(menu, wxID_ANY, _L("Clone") + "\t" + ctrl + "Q", "",
append_menu_item(menu, wxID_ANY, _L("Clone") + "\t" + ctrl + "K", "",
[this](wxCommandEvent&) {
plater()->clone_selection();
}, "", nullptr,