Skip to content

[Windows] First Enter and Escape key is eaten after hide/minimize the app via code #480

Open
@tonka3000

Description

@tonka3000

Hi,

Since the last couple of Flutter versions (currently 3.24) I have the issue that the first enter/escape key in a TextField get eaten by the app on Windows Desktop App after the Window get shown from hidden/minimized state.

This only happens when I hide/minimize the window via the corresponding method of windowManager. When I minimize via the Dialog button in the upper right corner with a mouse click this effect does not happen when I bring back the Dialog.

Entering any other key will work without any issue, only the ENTER and ESCAPE keys are affect. Until the window get hidden again the issue don't come back.

My Scenario:

I have a simple TextField which has auto-focus. Just hide/minimize via code show make it reproducible.

Demo App which show the general focus issue.

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