From 235d3c36005ffae924bcf81f446f83feb1153805 Mon Sep 17 00:00:00 2001 From: pjht Date: Wed, 7 Feb 2024 11:14:05 -0600 Subject: [PATCH] Fix front panel always forcing focus to be on it --- src/frontpanel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontpanel.rs b/src/frontpanel.rs index 9341a38..1a4e65f 100644 --- a/src/frontpanel.rs +++ b/src/frontpanel.rs @@ -100,7 +100,7 @@ impl Widget for &mut Frontpanel<'_> { let led_textures = led::Textures::new(self.textures.led_on.clone(), self.textures.led_off.clone()); let mut resp = ui.allocate_response(vec2(800.0, 333.0), Sense::click()); - resp.request_focus(); + // resp.request_focus(); let fp_rect = resp.rect; ui.allocate_ui_at_rect(fp_rect, |ui| { ui.image(&self.textures.fp);