mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 15:10:36 +08:00
ENH: add shortcut key of clone
Change-Id: I63a570ac05695d6cd1e36293f7ca9858d9f7f358
This commit is contained in:
parent
e88550b206
commit
0167baee89
@ -3105,6 +3105,9 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
||||
#endif /* __APPLE__ */
|
||||
post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE_ALL));
|
||||
break;
|
||||
case WXK_CONTROL_Q:
|
||||
post_event(SimpleEvent(EVT_GLTOOLBAR_CLONE));
|
||||
break;
|
||||
default: evt.Skip();
|
||||
}
|
||||
} else {
|
||||
|
@ -1452,7 +1452,12 @@ wxMenu* MenuFactory::assemble_part_menu()
|
||||
|
||||
void MenuFactory::append_menu_item_clone(wxMenu* menu)
|
||||
{
|
||||
append_menu_item(menu, wxID_ANY, _L("Clone") , "",
|
||||
#ifdef __APPLE__
|
||||
static const wxString ctrl = ("Ctrl+");
|
||||
#else
|
||||
static const wxString ctrl = _L("Ctrl+");
|
||||
#endif
|
||||
append_menu_item(menu, wxID_ANY, _L("Clone") + "\t" + ctrl + "Q", "",
|
||||
[this](wxCommandEvent&) {
|
||||
plater()->clone_selection();
|
||||
}, "", nullptr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user