tw.view: support Ctrl-R for balance refresh

This commit is contained in:
The MMGen Project 2026-02-01 09:11:08 +00:00
commit 51015089e6
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
4 changed files with 7 additions and 3 deletions

View file

@ -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'}

View file

@ -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:'

View file

@ -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):

View file

@ -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