make widgets respond to the "fire" button

This commit is contained in:
bunnie 2025-11-28 18:40:33 +08:00
parent be7dbf2d22
commit 738797754b
5 changed files with 5 additions and 5 deletions

View file

@ -354,7 +354,7 @@ impl ActionApi for Bip39Entry {
self.shortlist.key_action(k);
None
}
'∴' | '\u{d}' => {
'∴' | '\u{d}' | '🔥' => {
let selection = self.shortlist.get_selected();
match selection {
"⬅" => {

View file

@ -60,7 +60,7 @@ impl ActionApi for CheckBoxes {
'↑' | '↓' => {
self.items.key_action(k);
}
'∴' | '\u{d}' => {
'∴' | '\u{d}' | '🔥' => {
let mut selected_item = self.items.get_selected().to_owned();
if selected_item == t!("radio.select_and_close", locales::LANG) {
self.items.gfx.release_modal().unwrap();

View file

@ -51,7 +51,7 @@ impl ActionApi for RadioButtons {
'↑' | '↓' => {
self.items.key_action(k);
}
'∴' | '\u{d}' => {
'∴' | '\u{d}' | '🔥' => {
self.action_payload = RadioButtonPayload::new(self.items.get_selected());
self.items.gfx.release_modal().unwrap();

View file

@ -181,7 +181,7 @@ impl ActionApi for Slider {
'\u{0}' => {
// ignore null messages
}
'∴' | '\u{d}' => {
'∴' | '\u{d}' | '🔥' => {
// relinquish focus before returning the result
let xns = xous_names::XousNames::new().unwrap();
let gfx = Gfx::new(&xns).unwrap();

View file

@ -324,7 +324,7 @@ impl ActionApi for TextEntry {
}
}
// end the session by pressing the middle screen button
'\u{d}' => {
'\u{d}' | '🔥' => {
self.osk_active = false;
// run the validator