From 37fcbcededd42fa7950ce9994b18fa9c2d251198 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 23 Oct 2023 14:16:10 +0200 Subject: [PATCH] feat(core): make middle-click unlock the device for T2B1 [no changelog] --- core/embed/rust/src/ui/model_tr/component/homescreen.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/model_tr/component/homescreen.rs b/core/embed/rust/src/ui/model_tr/component/homescreen.rs index fe79ad24e9..c1ed7469a7 100644 --- a/core/embed/rust/src/ui/model_tr/component/homescreen.rs +++ b/core/embed/rust/src/ui/model_tr/component/homescreen.rs @@ -178,7 +178,9 @@ where T: StringType + Clone, { pub fn new(label: T, bootscreen: bool) -> Self { - let invisible_btn_layout = ButtonLayout::text_none_text("".into(), "".into()); + // Buttons will not be visible, we only need all three of them to be present, + // so that even middle-click triggers the event. + let invisible_btn_layout = ButtonLayout::arrow_armed_arrow("".into()); let instruction_str = if bootscreen { "Click to Connect" } else {