diff --git a/core/embed/rust/src/ui/layout_eckhart/component/button.rs b/core/embed/rust/src/ui/layout_eckhart/component/button.rs index f1e968b17d..f54cb38297 100644 --- a/core/embed/rust/src/ui/layout_eckhart/component/button.rs +++ b/core/embed/rust/src/ui/layout_eckhart/component/button.rs @@ -135,6 +135,10 @@ impl Button { ) } + pub fn is_pressed(&self) -> bool { + matches!(self.state, State::Pressed) + } + pub fn is_long_press(&self) -> bool { self.long_press.is_some() }