Skip to content

Clicking outside of window not clearing focus box sometimesΒ #697

@EliteMasterEric

Description

@EliteMasterEric
Image

In this example, the "Song Name" field is focused, and I can change focus by clicking other fields in the same form, or by expanding one of the menus at the top, but simply clicking outside the window does not remove focus.

Image

Inspecting reveals that when clicking outside the window, the top element which is checked for to clear focus is a Tooltip. When interacting with a Menu to remove the focus, the top element is that menu.

EDIT: To clarify, this seems to be mainly aesthetic. FocusManager.instance.focus becomes null so focus is FUNCTIONALLY lost, but the field does not update visually.

EDIT2: Scratch that, this does seem to be sometimes messing up focus checks, I've been trying to fix a bug where having a key bound to fullscreen would trigger when typing into a HaxeUI field and focus keeps returning null because Screen.instance.topComponent keeps returning a Tooltip (which will obviously have no focus) instead of the focused dialog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions