Fix scrolling in console (#3113)

This commit is contained in:
Daniel Girtler 2025-01-22 04:41:23 +11:00 committed by GitHub
parent fb159a8255
commit 64f08cc890
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -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', '']),

View File

@ -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']: