mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Merge pull request #9631 from Joehuu/fix-focused-textbox-absorbing-input-when-unfocused
Fix focused textbox absorbing input when unfocused
This commit is contained in:
commit
d79ab12c8f
@ -67,6 +67,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
public bool OnPressed(GlobalAction action)
|
public bool OnPressed(GlobalAction action)
|
||||||
{
|
{
|
||||||
|
if (!HasFocus) return false;
|
||||||
|
|
||||||
if (action == GlobalAction.Back)
|
if (action == GlobalAction.Back)
|
||||||
{
|
{
|
||||||
if (Text.Length > 0)
|
if (Text.Length > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user