From 821cd742f6e72e93c363fe4ef5bf3a67bb0d83b5 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Mon, 2 Dec 2024 21:50:00 +1100 Subject: [PATCH] Use ctrl+h for help menu trigger --- archinstall/tui/curses_menu.py | 2 +- archinstall/tui/types.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/archinstall/tui/curses_menu.py b/archinstall/tui/curses_menu.py index 88f4995afb..a8f0b9c13f 100644 --- a/archinstall/tui/curses_menu.py +++ b/archinstall/tui/curses_menu.py @@ -91,7 +91,7 @@ def _confirm_interrupt(self, warning: str) -> bool: return False def help_entry(self) -> ViewportEntry: - return ViewportEntry(str(_('Press ? for help')), 0, 0, STYLE.NORMAL) + return ViewportEntry(str(_('Press Ctrl+h for help')), 0, 0, STYLE.NORMAL) def _show_help(self) -> None: if not self._help_window: diff --git a/archinstall/tui/types.py b/archinstall/tui/types.py index 597fc85011..321614d376 100644 --- a/archinstall/tui/types.py +++ b/archinstall/tui/types.py @@ -43,11 +43,11 @@ class MenuKeys(Enum): ESC = {27} # BACKSPACE (search) BACKSPACE = {127, 263} - # Help view: ? - HELP = {63} - # Scroll up: CTRL+up, CTRL+k + # Help view: ctrl+h + HELP = {8} + # Scroll up: CTRL+up SCROLL_UP = {581} - # Scroll down: CTRL+down, CTRL+j + # Scroll down: CTRL+down SCROLL_DOWN = {540} @classmethod