Fix gameplay chat display not losing focus on escape key press

Closes #15293.
This commit is contained in:
Dean Herbert
2021-10-26 13:55:02 +09:00
parent 8015791d4c
commit 6c38028d06
2 changed files with 22 additions and 0 deletions

View File

@ -92,6 +92,18 @@ namespace osu.Game.Tests.Visual.Multiplayer
assertChatFocused(true);
}
[Test]
public void TestFocusLostOnBackKey()
{
setLocalUserPlaying(true);
assertChatFocused(false);
AddStep("press tab", () => InputManager.Key(Key.Tab));
assertChatFocused(true);
AddStep("press escape", () => InputManager.Key(Key.Escape));
assertChatFocused(false);
}
[Test]
public void TestFocusOnTabKeyWhenNotExpanded()
{