feat: Prevent Tab key from moving focus outside active viewport tools
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user