From feb04c64a880a130b5c524528939f65225012d3b Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 24 Jan 2023 00:25:33 +0100 Subject: [PATCH] overlays/osk: show dialog on key input --- rpcs3/Emu/RSX/Overlays/overlay_osk.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/RSX/Overlays/overlay_osk.cpp b/rpcs3/Emu/RSX/Overlays/overlay_osk.cpp index 7d761bc918..2d48017ffb 100644 --- a/rpcs3/Emu/RSX/Overlays/overlay_osk.cpp +++ b/rpcs3/Emu/RSX/Overlays/overlay_osk.cpp @@ -591,6 +591,9 @@ namespace rsx update_panel(); } + // Make sure to show the dialog and send necessary events + set_visible(true); + std::lock_guard lock(m_preview_mutex); const u32 grid_size = num_columns * num_rows; @@ -843,6 +846,9 @@ namespace rsx update_panel(); } + // Make sure to show the dialog and send necessary events + set_visible(true); + const bool use_key_string_fallback = !key.empty(); osk.notice("osk_dialog::on_key_pressed(led=%d, mkey=%d, key_code=%d, out_key_code=%d, pressed=%d, use_key_string_fallback=%d)", led, mkey, key_code, out_key_code, pressed, use_key_string_fallback);