Browse Source

tw.view: support Ctrl-R for balance refresh

The MMGen Project 1 month ago
parent
commit
51015089e6

+ 2 - 1
mmgen/proto/xmr/tw/addresses.py

@@ -48,7 +48,8 @@ class MoneroTwAddresses(MoneroTwView, TwAddresses):
 		'N': 'a_acct_new',
 		'N': 'a_acct_new',
 		'n': 'i_addr_new',
 		'n': 'i_addr_new',
 		'u': 'd_showused',
 		'u': 'd_showused',
-		'R': 'a_sync_wallets'}
+		'R': 'a_sync_wallets',
+		'\x12': 'a_sync_wallets'}
 	removed_key_mappings = {
 	removed_key_mappings = {
 		'D': 'i_addr_delete'}
 		'D': 'i_addr_delete'}
 
 

+ 1 - 0
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:']
 			'Actions: [q]uit menu, add [l]abel, r[e]draw, [R]efresh balances:']
 		self.extra_key_mappings = {
 		self.extra_key_mappings = {
 			'R': 'a_sync_wallets',
 			'R': 'a_sync_wallets',
+			'\x12': 'a_sync_wallets',
 			'A': 's_age'}
 			'A': 's_age'}
 		if tx and tx.is_sweep:
 		if tx and tx.is_sweep:
 			self.prompt_fs_in[-1] = 'Actions: [q]uit, add [l]abel, r[e]draw, [R]efresh balances:'
 			self.prompt_fs_in[-1] = 'Actions: [q]uit, add [l]abel, r[e]draw, [R]efresh balances:'

+ 2 - 1
mmgen/tw/addresses.py

@@ -55,7 +55,8 @@ class TwAddresses(TwView):
 		'w':'a_view_detail',
 		'w':'a_view_detail',
 		'p':'a_print_detail'}
 		'p':'a_print_detail'}
 	extra_key_mappings = {
 	extra_key_mappings = {
-		'R':'i_balance_refresh'}
+		'R':'i_balance_refresh',
+		'\x12':'i_balance_refresh'}
 
 
 	class display_type(TwView.display_type):
 	class display_type(TwView.display_type):
 
 

+ 2 - 1
mmgen/tw/unspent.py

@@ -66,7 +66,8 @@ class TwUnspentOutputs(TwView):
 		'l':'i_comment_add'}
 		'l':'i_comment_add'}
 	extra_key_mappings = {
 	extra_key_mappings = {
 		'D':'i_addr_delete',
 		'D':'i_addr_delete',
-		'R':'i_balance_refresh'}
+		'R':'i_balance_refresh',
+		'\x12':'i_balance_refresh'}
 	disp_spc = 3
 	disp_spc = 3
 	vout_w = 0
 	vout_w = 0