Browse Source

Fix for moving focus when root widget is focused

JoshEngebretson 9 years ago
parent
commit
fd57b2f78a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/ThirdParty/TurboBadger/tb_widgets.cpp

+ 3 - 0
Source/ThirdParty/TurboBadger/tb_widgets.cpp

@@ -630,6 +630,9 @@ bool TBWidget::MoveFocus(bool forward)
     if (!root)
         root = origin->GetParentRoot();
 
+    if (root == origin)
+        return false;
+
     TBWidget *current = origin;
     while (current)
     {