FIX:The text tool on Mac cannot input uppercase D
And modify shift+d to ctrl+shift+d jira: github 6222 Change-Id: Iedf69c98fb882326cb73866af77f02883b8ebe64
This commit is contained in:
parent
8df494e358
commit
e22137e20e
|
@ -1556,7 +1556,9 @@ STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codep
|
||||||
return 0; // not found
|
return 0; // not found
|
||||||
}
|
}
|
||||||
// @TODO
|
// @TODO
|
||||||
|
#ifndef __APPLE__
|
||||||
STBTT_assert(0);
|
STBTT_assert(0);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3518,6 +3518,16 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((evt.GetModifiers() & ctrlMask) != 0) {
|
if ((evt.GetModifiers() & ctrlMask) != 0) {
|
||||||
|
if ((evt.GetModifiers() & shiftMask) != 0) {
|
||||||
|
switch (keyCode) {
|
||||||
|
case 'd':
|
||||||
|
case 'D':
|
||||||
|
case WXK_CONTROL_D: {
|
||||||
|
post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE_ALL));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// CTRL is pressed
|
// CTRL is pressed
|
||||||
switch (keyCode) {
|
switch (keyCode) {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
@ -3646,17 +3656,6 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
||||||
default: evt.Skip();
|
default: evt.Skip();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((evt.GetModifiers() & shiftMask) != 0) {
|
|
||||||
switch (keyCode) {
|
|
||||||
|
|
||||||
case 'd':
|
|
||||||
case 'D':
|
|
||||||
case WXK_CONTROL_D:
|
|
||||||
post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE_ALL));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
auto obj_list = wxGetApp().obj_list();
|
auto obj_list = wxGetApp().obj_list();
|
||||||
switch (keyCode)
|
switch (keyCode)
|
||||||
{
|
{
|
||||||
|
|
|
@ -251,7 +251,7 @@ void KBShortcutsDialog::fill_shortcuts()
|
||||||
{ctrl + "6", L("Camera Angle - Right side")},
|
{ctrl + "6", L("Camera Angle - Right side")},
|
||||||
|
|
||||||
{ctrl + "A", L("Select all objects")},
|
{ctrl + "A", L("Select all objects")},
|
||||||
{L("Shift+D"), L("Delete all")},
|
{ctrl + L("Shift+D"), L("Delete all")},
|
||||||
{ctrl + "Z", L("Undo")},
|
{ctrl + "Z", L("Undo")},
|
||||||
{ctrl + "Y", L("Redo")},
|
{ctrl + "Y", L("Redo")},
|
||||||
{ "M", L("Gizmo move") },
|
{ "M", L("Gizmo move") },
|
||||||
|
|
|
@ -2618,11 +2618,11 @@ void MainFrame::init_menubar_as_editor()
|
||||||
_L("Paste clipboard"), [this](wxCommandEvent&) { m_plater->paste_from_clipboard(); },
|
_L("Paste clipboard"), [this](wxCommandEvent&) { m_plater->paste_from_clipboard(); },
|
||||||
"menu_paste", nullptr, [this](){return m_plater->can_paste_from_clipboard(); }, this);
|
"menu_paste", nullptr, [this](){return m_plater->can_paste_from_clipboard(); }, this);
|
||||||
// BBS Delete selected
|
// BBS Delete selected
|
||||||
append_menu_item(editMenu, wxID_ANY, _L("Delete selected") + "\t" + _L("Del"),
|
append_menu_item(editMenu, wxID_ANY, _L("Delete selected") + "\tDelete",
|
||||||
_L("Deletes the current selection"),[this](wxCommandEvent&) { m_plater->remove_selected(); },
|
_L("Deletes the current selection"),[this](wxCommandEvent&) { m_plater->remove_selected(); },
|
||||||
"menu_remove", nullptr, [this](){return can_delete(); }, this);
|
"menu_remove", nullptr, [this](){return can_delete(); }, this);
|
||||||
//BBS: delete all
|
//BBS: delete all
|
||||||
append_menu_item(editMenu, wxID_ANY, _L("Delete all") + "\t" + _L("Shift+") + "D",
|
append_menu_item(editMenu, wxID_ANY, _L("Delete all") + "\t" + ctrl + _L("Shift+") + "D",
|
||||||
_L("Deletes all objects"),[this](wxCommandEvent&) { m_plater->delete_all_objects_from_model(); },
|
_L("Deletes all objects"),[this](wxCommandEvent&) { m_plater->delete_all_objects_from_model(); },
|
||||||
"menu_remove", nullptr, [this](){return can_delete_all(); }, this);
|
"menu_remove", nullptr, [this](){return can_delete_all(); }, this);
|
||||||
editMenu->AppendSeparator();
|
editMenu->AppendSeparator();
|
||||||
|
@ -2704,10 +2704,11 @@ void MainFrame::init_menubar_as_editor()
|
||||||
"", nullptr, [this](){return can_delete(); }, this);
|
"", nullptr, [this](){return can_delete(); }, this);
|
||||||
#endif
|
#endif
|
||||||
//BBS: delete all
|
//BBS: delete all
|
||||||
append_menu_item(editMenu, wxID_ANY, _L("Delete all") + "\t" + _L("Shift+") + "D",
|
append_menu_item(editMenu, wxID_ANY, _L("Delete all") + "\t" + ctrl + _L("Shift+") + "D",
|
||||||
_L("Deletes all objects"),[this, handle_key_event](wxCommandEvent&) {
|
_L("Deletes all objects"),[this, handle_key_event](wxCommandEvent&) {
|
||||||
wxKeyEvent e;
|
wxKeyEvent e;
|
||||||
e.SetEventType(wxEVT_KEY_DOWN);
|
e.SetEventType(wxEVT_KEY_DOWN);
|
||||||
|
e.SetShiftDown(true);
|
||||||
e.SetControlDown(true);
|
e.SetControlDown(true);
|
||||||
e.m_keyCode = 'D';
|
e.m_keyCode = 'D';
|
||||||
if (handle_key_event(e)) {
|
if (handle_key_event(e)) {
|
||||||
|
|
Loading…
Reference in New Issue