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 894cb6f63b..ae5a1145dd 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 long_press(&self) -> Option { self.long_press }