From 4640213410c85dc43ff1f5f8b1a3388cf4bf0cee Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 6 May 2025 03:06:21 +0800 Subject: [PATCH] fix hosted mode --- services/modals/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/modals/src/main.rs b/services/modals/src/main.rs index 8392eb131..87099db74 100644 --- a/services/modals/src/main.rs +++ b/services/modals/src/main.rs @@ -1023,9 +1023,12 @@ fn wrapped_main() -> ! { core::char::from_u32(k3 as u32).unwrap_or('\u{0000}'), core::char::from_u32(k4 as u32).unwrap_or('\u{0000}'), ]; + #[cfg(feature = "no-gam")] if has_focus { renderer_modal.key_event(keys); } + #[cfg(not(feature = "no-gam"))] + renderer_modal.key_event(keys); }), Some(Opcode::ModalDrop) => { // this guy should never quit, it's a core OS service