Browse Source

Do not allow stealing input focus from ourselves

Ivan Savenko 1 year ago
parent
commit
28a3deb42b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      client/widgets/TextControls.cpp

+ 3 - 0
client/widgets/TextControls.cpp

@@ -801,6 +801,9 @@ void CFocusable::moveFocus()
 		if(i == focusables.end())
 			i = focusables.begin();
 
+		if (*i == this)
+			return;
+
 		if((*i)->isActive())
 		{
 			(*i)->giveFocus();