From: Twaik Yont <9674930+twaik@users.noreply.github.com> Android key events are delivered to the focused view before Wine turns them into hardware input. Request focus for the desktop whole view after it is added, so keyboard input works immediately after activity startup without relying on a later focus transition such as switching through Recents. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- dlls/wineandroid.drv/WineActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wineandroid.drv/WineActivity.java b/dlls/wineandroid.drv/WineActivity.java index 1050349f536..5a1063f96cd 100644 --- a/dlls/wineandroid.drv/WineActivity.java +++ b/dlls/wineandroid.drv/WineActivity.java @@ -796,6 +796,7 @@ public void create_window( int hwnd, boolean is_desktop, boolean opengl, int par desktop_window = win; top_view.addView( desktop_window.create_whole_view() ); desktop_window.client_group.bringToFront(); + desktop_window.window_group.get_content_view().requestFocus(); } } if (opengl) win.create_client_view(); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10951