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

@ -1029,6 +1029,14 @@ bool GLGizmosManager::on_char(wxKeyEvent& evt)
//break;
//}
// BBS: Skip all keys when in gizmo. This is necessary for 3D text tool.
default:
{
if (is_running() && m_current == EType::Text) {
processed = true;
}
break;
}
}
}