We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 704ff6a + 24b28a3 commit 0b9cf43Copy full SHA for 0b9cf43
src/app.rs
@@ -2913,7 +2913,11 @@ impl Application for App {
2913
}
2914
2915
Message::Key(window_id, modifiers, key, text) => {
2916
- if self.core.main_window_id() == Some(window_id) {
+ #[cfg(all(feature = "wayland", feature = "desktop-applet"))]
2917
+ let in_surface_ids = self.surface_ids.values().any(|id| *id == window_id);
2918
+ #[cfg(not(all(feature = "wayland", feature = "desktop-applet")))]
2919
+ let in_surface_ids = false;
2920
+ if self.core.main_window_id() == Some(window_id) || in_surface_ids {
2921
let entity = self.tab_model.active();
2922
for (key_bind, action) in self.key_binds.iter() {
2923
if key_bind.matches(modifiers, &key) {
0 commit comments