FIX: objectList clone shortcut key issue
jira: new Change-Id: Ia75bf58a7d53f962e1af6c2fd97497270b7eea84
This commit is contained in:
parent
1cfdf4ae5f
commit
83407370eb
|
@ -1480,7 +1480,7 @@ void ObjectList::key_event(wxKeyEvent& event)
|
||||||
undo();
|
undo();
|
||||||
else if (wxGetKeyState(wxKeyCode('X')) && wxGetKeyState(WXK_CONTROL))
|
else if (wxGetKeyState(wxKeyCode('X')) && wxGetKeyState(WXK_CONTROL))
|
||||||
cut();
|
cut();
|
||||||
else if (wxGetKeyState(wxKeyCode('M')) && wxGetKeyState(WXK_CONTROL))
|
else if (wxGetKeyState(wxKeyCode('K')) && wxGetKeyState(WXK_CONTROL))
|
||||||
clone();
|
clone();
|
||||||
//else if (event.GetUnicodeKey() == '+')
|
//else if (event.GetUnicodeKey() == '+')
|
||||||
// increase_instances();
|
// increase_instances();
|
||||||
|
|
|
@ -283,7 +283,7 @@ void KBShortcutsDialog::fill_shortcuts()
|
||||||
{ctrl + "V", L("Paste from clipboard")},
|
{ctrl + "V", L("Paste from clipboard")},
|
||||||
{ctrl + "X", L("Cut")},
|
{ctrl + "X", L("Cut")},
|
||||||
{ctrl + "A", L("Select all objects")},
|
{ctrl + "A", L("Select all objects")},
|
||||||
{ctrl + "M", L("Clone selected")},
|
{ctrl + "K", L("Clone selected")},
|
||||||
{ctrl + "Z", L("Undo")},
|
{ctrl + "Z", L("Undo")},
|
||||||
{ctrl + "Y", L("Redo")},
|
{ctrl + "Y", L("Redo")},
|
||||||
{L("Space"), L("Select the object/part and press space to change the name")},
|
{L("Space"), L("Select the object/part and press space to change the name")},
|
||||||
|
|
|
@ -2508,7 +2508,7 @@ void MainFrame::init_menubar_as_editor()
|
||||||
"", nullptr, [this](){return can_delete_all(); }, this);
|
"", nullptr, [this](){return can_delete_all(); }, this);
|
||||||
editMenu->AppendSeparator();
|
editMenu->AppendSeparator();
|
||||||
// BBS Clone Selected
|
// 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&) {
|
_L("Clone copies of selections"),[this, handle_key_event](wxCommandEvent&) {
|
||||||
wxKeyEvent e;
|
wxKeyEvent e;
|
||||||
e.SetEventType(wxEVT_KEY_DOWN);
|
e.SetEventType(wxEVT_KEY_DOWN);
|
||||||
|
|
Loading…
Reference in New Issue