From 1ff04c6df0975a1bd05fa73e0992b6e8a473cc64 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Thu, 12 Dec 2024 19:43:54 +1100 Subject: [PATCH] Use ctrl+h for help menu trigger (#2996) --- 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 88f4995a..a8f0b9c1 100644 --- a/archinstall/tui/curses_menu.py +++ b/archinstall/tui/curses_menu.py @@ -91,7 +91,7 @@ class AbstractCurses(metaclass=ABCMeta): 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 597fc850..321614d3 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