Update the action text (#1462)

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
This commit is contained in:
Daniel Girtler 2022-09-08 00:29:04 +10:00 committed by GitHub
parent a2adeca5eb
commit d2484f67cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -162,14 +162,17 @@ class Menu(TerminalMenu):
action_info = '' action_info = ''
if skip: if skip:
action_info += str(_("Use ESC to skip")) action_info += str(_('ESC to skip'))
if self._raise_error_on_interrupt: if self._raise_error_on_interrupt:
if len(action_info) > 0: action_info += ', ' if len(action_info) > 0 else ''
action_info += '\n' action_info += str(_('CTRL+C to reset'))
action_info += str(_('Use CTRL+C to reset current selection\n\n'))
menu_title += action_info if multi:
action_info += ', ' if len(action_info) > 0 else ''
action_info += str(_('TAB to select'))
menu_title += action_info + '\n'
if default_option: if default_option:
# if a default value was specified we move that one # if a default value was specified we move that one