Fix navigation focus path in UIControl transform editor

#2704
This commit is contained in:
Wojtek Figat
2024-09-18 12:46:59 +02:00
parent 6857664f48
commit 8f0cf3b8ef
2 changed files with 38 additions and 11 deletions

View File

@@ -639,6 +639,18 @@ namespace FlaxEngine.GUI
case NavDirection.Down: return NavTargetDown;
case NavDirection.Left: return NavTargetLeft;
case NavDirection.Right: return NavTargetRight;
case NavDirection.Next:
if (NavTargetRight != null)
return NavTargetRight;
if (NavTargetDown != null)
return NavTargetDown;
return null;
case NavDirection.Previous:
if (NavTargetLeft != null)
return NavTargetLeft;
if (NavTargetUp != null)
return NavTargetUp;
return null;
default: return null;
}
}