Fix front panel always forcing focus to be on it

This commit is contained in:
pjht 2024-02-07 11:14:05 -06:00
parent 3aab3f72ef
commit 235d3c3600
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -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);