From 24b28a3703e39c23310c5ac64a6a990aab1b74fd Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 20 Oct 2025 16:17:19 -0400 Subject: [PATCH] fix: check surface_ids for keypress --- src/app.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index dbeabe3..c4a6978 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2913,7 +2913,11 @@ impl Application for App { } } Message::Key(window_id, modifiers, key, text) => { - if self.core.main_window_id() == Some(window_id) { + #[cfg(all(feature = "wayland", feature = "desktop-applet"))] + let in_surface_ids = self.surface_ids.values().any(|id| *id == window_id); + #[cfg(not(all(feature = "wayland", feature = "desktop-applet")))] + let in_surface_ids = false; + if self.core.main_window_id() == Some(window_id) || in_surface_ids { let entity = self.tab_model.active(); for (key_bind, action) in self.key_binds.iter() { if key_bind.matches(modifiers, &key) {