mirror of https://github.com/ppy/osu
Fix focused textbox absorbing input when unfocused
This commit is contained in:
parent
89d04f797f
commit
f71ed47e66
|
@ -67,6 +67,8 @@ protected override bool OnKeyDown(KeyDownEvent e)
|
|||
|
||||
public bool OnPressed(GlobalAction action)
|
||||
{
|
||||
if (!HasFocus) return false;
|
||||
|
||||
if (action == GlobalAction.Back)
|
||||
{
|
||||
if (Text.Length > 0)
|
||||
|
|
Loading…
Reference in New Issue