ENH:Gizmo shortcut key added

Change-Id: I4d089ef521b16d3ffedd07ba8b22043b899fe7b2
(cherry picked from commit 2f425b8321b3d24d24928185d0c33d54a3a9126b)
This commit is contained in:
xiangdong.yang 2022-07-28 10:15:33 +08:00 committed by Lane.Wei
parent 7ced9f4e23
commit cd907bbc9a
8 changed files with 9 additions and 9 deletions

View file

@ -174,7 +174,7 @@ bool GLGizmoAdvancedCut::on_init()
if (!GLGizmoRotate3D::on_init())
return false;
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_C;
return true;
}

View file

@ -76,7 +76,7 @@ std::string GLGizmoFdmSupports::on_get_name() const
bool GLGizmoFdmSupports::on_init()
{
// BBS
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_L;
m_desc["clipping_of_view"] = _L("Section view") + ": ";
m_desc["cursor_size"] = _L("Pen size") + ": ";

View file

@ -25,7 +25,7 @@ GLGizmoFlatten::GLGizmoFlatten(GLCanvas3D& parent, const std::string& icon_filen
bool GLGizmoFlatten::on_init()
{
// BBS
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_F;
return true;
}

View file

@ -94,7 +94,7 @@ void GLGizmoMmuSegmentation::init_extruders_data()
bool GLGizmoMmuSegmentation::on_init()
{
// BBS
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_N;
m_desc["clipping_of_view"] = _L("Section view") + ": ";
m_desc["cursor_size"] = _L("Pen size") + ": ";

View file

@ -56,7 +56,7 @@ bool GLGizmoMove3D::on_init()
m_grabbers.push_back(Grabber());
}
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_M;
return true;
}

View file

@ -466,7 +466,7 @@ bool GLGizmoRotate3D::on_init()
m_gizmos[i].set_highlight_color(AXES_COLOR[i]);
}
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_R;
return true;
}

View file

@ -74,7 +74,7 @@ bool GLGizmoScale3D::on_init()
// BBS
m_grabbers[4].enabled = false;
m_shortcut_key = WXK_NONE;
m_shortcut_key = WXK_CONTROL_S;
return true;
}