From 51015089e6467c2d7336407018af6ac542de0753 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 1 Feb 2026 09:11:08 +0000 Subject: [PATCH] tw.view: support Ctrl-R for balance refresh --- mmgen/proto/xmr/tw/addresses.py | 3 ++- mmgen/proto/xmr/tw/unspent.py | 1 + mmgen/tw/addresses.py | 3 ++- mmgen/tw/unspent.py | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mmgen/proto/xmr/tw/addresses.py b/mmgen/proto/xmr/tw/addresses.py index 562464ff..48e51249 100755 --- a/mmgen/proto/xmr/tw/addresses.py +++ b/mmgen/proto/xmr/tw/addresses.py @@ -48,7 +48,8 @@ class MoneroTwAddresses(MoneroTwView, TwAddresses): 'N': 'a_acct_new', 'n': 'i_addr_new', 'u': 'd_showused', - 'R': 'a_sync_wallets'} + 'R': 'a_sync_wallets', + '\x12': 'a_sync_wallets'} removed_key_mappings = { 'D': 'i_addr_delete'} diff --git a/mmgen/proto/xmr/tw/unspent.py b/mmgen/proto/xmr/tw/unspent.py index 58458f6b..21f0423b 100755 --- a/mmgen/proto/xmr/tw/unspent.py +++ b/mmgen/proto/xmr/tw/unspent.py @@ -29,6 +29,7 @@ class MoneroTwUnspentOutputs(MoneroTwView, TwUnspentOutputs): 'Actions: [q]uit menu, add [l]abel, r[e]draw, [R]efresh balances:'] self.extra_key_mappings = { 'R': 'a_sync_wallets', + '\x12': 'a_sync_wallets', 'A': 's_age'} if tx and tx.is_sweep: self.prompt_fs_in[-1] = 'Actions: [q]uit, add [l]abel, r[e]draw, [R]efresh balances:' diff --git a/mmgen/tw/addresses.py b/mmgen/tw/addresses.py index fd80d234..da5008c1 100755 --- a/mmgen/tw/addresses.py +++ b/mmgen/tw/addresses.py @@ -55,7 +55,8 @@ class TwAddresses(TwView): 'w':'a_view_detail', 'p':'a_print_detail'} extra_key_mappings = { - 'R':'i_balance_refresh'} + 'R':'i_balance_refresh', + '\x12':'i_balance_refresh'} class display_type(TwView.display_type): diff --git a/mmgen/tw/unspent.py b/mmgen/tw/unspent.py index 054b0ea4..a088f662 100755 --- a/mmgen/tw/unspent.py +++ b/mmgen/tw/unspent.py @@ -66,7 +66,8 @@ class TwUnspentOutputs(TwView): 'l':'i_comment_add'} extra_key_mappings = { 'D':'i_addr_delete', - 'R':'i_balance_refresh'} + 'R':'i_balance_refresh', + '\x12':'i_balance_refresh'} disp_spc = 3 vout_w = 0