Keyboard focus is automatically removed from a GUIComponent if it's not in the GUIUpdateList
This commit is contained in:
@@ -33,6 +33,12 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public static void ClearUpdateList()
|
public static void ClearUpdateList()
|
||||||
{
|
{
|
||||||
|
if (KeyboardDispatcher.Subscriber is GUIComponent &&
|
||||||
|
!ComponentsToUpdate.Contains((GUIComponent)KeyboardDispatcher.Subscriber))
|
||||||
|
{
|
||||||
|
KeyboardDispatcher.Subscriber = null;
|
||||||
|
}
|
||||||
|
|
||||||
ComponentsToUpdate.Clear();
|
ComponentsToUpdate.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user