Skip to content

[Bug?] TextBox retains visual focus (highlight and caret) when window is deactivated #91

@satanikia1300

Description

@satanikia1300

Description:
When the application window loses focus (is deactivated), a focused TextBox continues to show its active visual state, including the highlighted border and the blinking caret. This gives a misleading visual cue to the user, implying that the control is still actively receiving keyboard input when the window itself is no longer active.

Expected Behavior:
When the Window is deactivated, a focused TextBox should update its visual state to indicate it no longer has effective keyboard focus. It should hide the blinking caret and change the highlight border to a neutral or inactive color. When the window is activated again, the active visual state should be restored.

Actual Behavior:
The TextBox border remains highlighted and the caret continues to blink even after the application window has been deactivated.

Steps to Reproduce:

  1. Launch an application containing a TextBox.
  2. Click inside the TextBox to focus it (observe the blinking caret and border).
  3. Click outside the application window (e.g., on the desktop or another application) to deactivate the window.
  4. Observe that the TextBox inside the deactivated window still shows the caret and focus border.

Screenshots:
Image

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