FIX: cannot input hotkey chars in 3D Text tool

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: Ie28fc3943ddcde1e2fa1f607fe9e8d0125399a74
This commit is contained in:
yifan.wu 2022-12-02 22:14:44 +08:00 committed by Lane.Wei
parent 0ad9cd3ff7
commit 98686a708f
3 changed files with 18 additions and 3 deletions

View file

@ -2926,6 +2926,13 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
break;
// BBS
#ifdef __APPLE__
case 'E':
case 'e':
#else /* __APPLE__ */
case WXK_CONTROL_E:
#endif /* __APPLE__ */
{ m_labels.show(!m_labels.is_shown()); m_dirty = true; break; }
case '0': {
select_view("plate");
zoom_to_bed();
@ -3022,8 +3029,6 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
case 'C':
case 'c': { m_gcode_viewer.toggle_gcode_window_visibility(); m_dirty = true; request_extra_frame(); break; }
#endif
case 'E':
case 'e': { m_labels.show(!m_labels.is_shown()); m_dirty = true; break; }
//case 'G':
//case 'g': {
// if ((evt.GetModifiers() & shiftMask) != 0) {