feat: Prevent Tab key from moving focus outside active viewport tools

This commit is contained in:
2026-02-16 18:51:57 -07:00
committed by Tanner Collin (aider)
parent d89b7e42bc
commit b2d5cd19d4
4 changed files with 32 additions and 0 deletions

View File

@@ -1054,6 +1054,14 @@ void ViewportWidget::keyPressEvent(QKeyEvent *event)
QOpenGLWidget::keyPressEvent(event);
}
bool ViewportWidget::focusNextPrevChild(bool next)
{
if (m_activeTool != static_cast<int>(ApplicationController::ToolType::None)) {
return false;
}
return QOpenGLWidget::focusNextPrevChild(next);
}
void ViewportWidget::onSketchModeStarted(SketchPlane plane)
{
m_currentPlane = plane;