From 64f08cc890688b9f92e6a91c93f3989a7ba22f92 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Wed, 22 Jan 2025 04:41:23 +1100 Subject: [PATCH] Fix scrolling in console (#3113) --- archinstall/tui/help.py | 4 ++-- archinstall/tui/types.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/archinstall/tui/help.py b/archinstall/tui/help.py index 28a7e187..2761151e 100644 --- a/archinstall/tui/help.py +++ b/archinstall/tui/help.py @@ -39,8 +39,8 @@ class Help: navigation = HelpGroup( group_id=HelpTextGroupId.NAVIGATION, group_entries=[ - HelpText('Scroll up', ['Ctrl+↑']), - HelpText('Scroll down', ['Ctrl+↓']), + HelpText('Preview scroll up', ['PgUp']), + HelpText('Preview scroll down', ['PgDown']), HelpText('Move up', ['k', '↑']), HelpText('Move down', ['j', '↓']), HelpText('Move right', ['l', '→']), diff --git a/archinstall/tui/types.py b/archinstall/tui/types.py index be7b433d..f7525a33 100644 --- a/archinstall/tui/types.py +++ b/archinstall/tui/types.py @@ -45,10 +45,10 @@ class MenuKeys(Enum): BACKSPACE = frozenset({127, 263}) # Help view: ctrl+h HELP = frozenset({8}) - # Scroll up: CTRL+up - SCROLL_UP = frozenset({581}) - # Scroll down: CTRL+down - SCROLL_DOWN = frozenset({540}) + # Scroll up: PGUP + SCROLL_UP = frozenset({339}) + # Scroll down: PGDOWN + SCROLL_DOWN = frozenset({338}) @classmethod def from_ord(cls, key: int) -> list['MenuKeys']: