FIX: objectList clone shortcut key issue

jira: new

Change-Id: Ia75bf58a7d53f962e1af6c2fd97497270b7eea84
This commit is contained in:
liz.li 2023-11-28 14:34:55 +08:00 committed by Lane.Wei
parent 1cfdf4ae5f
commit 83407370eb
3 changed files with 3 additions and 3 deletions

View File

@ -1480,7 +1480,7 @@ void ObjectList::key_event(wxKeyEvent& event)
undo();
else if (wxGetKeyState(wxKeyCode('X')) && wxGetKeyState(WXK_CONTROL))
cut();
else if (wxGetKeyState(wxKeyCode('M')) && wxGetKeyState(WXK_CONTROL))
else if (wxGetKeyState(wxKeyCode('K')) && wxGetKeyState(WXK_CONTROL))
clone();
//else if (event.GetUnicodeKey() == '+')
// increase_instances();

View File

@ -283,7 +283,7 @@ void KBShortcutsDialog::fill_shortcuts()
{ctrl + "V", L("Paste from clipboard")},
{ctrl + "X", L("Cut")},
{ctrl + "A", L("Select all objects")},
{ctrl + "M", L("Clone selected")},
{ctrl + "K", L("Clone selected")},
{ctrl + "Z", L("Undo")},
{ctrl + "Y", L("Redo")},
{L("Space"), L("Select the object/part and press space to change the name")},

View File

@ -2508,7 +2508,7 @@ void MainFrame::init_menubar_as_editor()
"", nullptr, [this](){return can_delete_all(); }, this);
editMenu->AppendSeparator();
// BBS Clone Selected
append_menu_item(editMenu, wxID_ANY, _L("Clone selected") + "\t" + ctrl + "M",
append_menu_item(editMenu, wxID_ANY, _L("Clone selected") + "\t" + ctrl + "K",
_L("Clone copies of selections"),[this, handle_key_event](wxCommandEvent&) {
wxKeyEvent e;
e.SetEventType(wxEVT_KEY_DOWN);