Improve brim paint gizmo shortcuts (#9174)

* Change section view hotkey to alt+mouse wheel

* Use ctrl+mouse wheel up/down to change brim size

* Update current brim brush size
This commit is contained in:
Noisyfox 2025-04-13 17:34:05 +08:00 committed by GitHub
commit 5ed855aeef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 82 additions and 26 deletions

View file

@ -882,13 +882,15 @@ bool GLGizmosManager::on_key(wxKeyEvent& evt)
if (gizmo_event(SLAGizmoEventType::AltUp) || (is_editing && is_rectangle_dragging))
processed = true;
}
// BBS
if (m_current == MmuSegmentation && keyCode > '0' && keyCode <= '9') {
// capture number key
processed = true;
else if (keyCode == WXK_CONTROL) {
gizmo_event(SLAGizmoEventType::CtrlUp);
}
}
// BBS
if (m_current == MmuSegmentation && keyCode > '0' && keyCode <= '9') {
// capture number key
processed = true;
}
if (m_current == Measure || m_current == Assembly) {
if (keyCode == WXK_CONTROL)
gizmo_event(SLAGizmoEventType::CtrlUp, Vec2d::Zero(), evt.ShiftDown(), evt.AltDown(), evt.CmdDown());