mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-30 00:45:26 -05:00
Ctrl+C and Ctrl+V for Copy and Paste refactored in the same way as Ctrl+A for Select All
This commit is contained in:
1 parent
554176b97f
commit
dfa924e8eb
4 files changed
+24
-2
No files matched your search
@@ -589,6 +589,10 @@ void ObjectList::key_event(wxKeyEvent& event)
|
||||
}
|
||||
else if (wxGetKeyState(wxKeyCode('A')) && wxGetKeyState(WXK_CONTROL/*WXK_SHIFT*/))
|
||||
select_item_all_children();
|
||||
else if (wxGetKeyState(wxKeyCode('C')) && wxGetKeyState(WXK_CONTROL))
|
||||
wxPostEvent((wxEvtHandler*)wxGetApp().plater()->canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_COPY));
|
||||
else if (wxGetKeyState(wxKeyCode('V')) && wxGetKeyState(WXK_CONTROL))
|
||||
wxPostEvent((wxEvtHandler*)wxGetApp().plater()->canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_PASTE));
|
||||
else
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user