On Windows, embedded/parented iced-baseview windows can receive mouse input without getting keyboard focus.
This causes text inputs and other keyboard-driven widgets to stop receiving key events even after being clicked.
This change explicitly focuses the window on mouse press before forwarding the event.
This was reproducible in an embedded plugin editor setup using nih-plug / nih_plug_iced with a TextInput
On Windows, embedded/parented iced-baseview windows can receive mouse input without getting keyboard focus.
This causes text inputs and other keyboard-driven widgets to stop receiving key events even after being clicked.
This change explicitly focuses the window on mouse press before forwarding the event.
This was reproducible in an embedded plugin editor setup using `nih-plug` / `nih_plug_iced` with a `TextInput`