mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
make widgets respond to the "fire" button
This commit is contained in:
parent
be7dbf2d22
commit
738797754b
5 changed files with 5 additions and 5 deletions
|
|
@ -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 {
|
||||
"⬅" => {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue