Fix front panel always forcing focus to be on it
This commit is contained in:
parent
3aab3f72ef
commit
235d3c3600
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user