Merge pull request #2278 from peppy/focused-textbox-fix

Fix FocusedTextBox in line with framework changes
This commit is contained in:
Dan Balasescu 2018-03-22 19:01:37 +09:00 committed by GitHub
commit 242ee8f6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit cc39713fbf9427aa53df91e27ecd09d15661089f
Subproject commit 241133f0a65326a563ba23b7166167a882d1d5cb

View File

@ -30,6 +30,9 @@ namespace osu.Game.Graphics.UserInterface
}
}
// We may not be focused yet, but we need to handle keyboard input to be able to request focus
public override bool HandleKeyboardInput => HoldFocus || base.HandleKeyboardInput;
protected override void OnFocus(InputState state)
{
base.OnFocus(state);