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( navigation = HelpGroup(
group_id=HelpTextGroupId.NAVIGATION, group_id=HelpTextGroupId.NAVIGATION,
group_entries=[ group_entries=[
HelpText('Scroll up', ['Ctrl+↑']), HelpText('Preview scroll up', ['PgUp']),
HelpText('Scroll down', ['Ctrl+↓']), HelpText('Preview scroll down', ['PgDown']),
HelpText('Move up', ['k', '']), HelpText('Move up', ['k', '']),
HelpText('Move down', ['j', '']), HelpText('Move down', ['j', '']),
HelpText('Move right', ['l', '']), HelpText('Move right', ['l', '']),

View File

@ -45,10 +45,10 @@ class MenuKeys(Enum):
BACKSPACE = frozenset({127, 263}) BACKSPACE = frozenset({127, 263})
# Help view: ctrl+h # Help view: ctrl+h
HELP = frozenset({8}) HELP = frozenset({8})
# Scroll up: CTRL+up # Scroll up: PGUP
SCROLL_UP = frozenset({581}) SCROLL_UP = frozenset({339})
# Scroll down: CTRL+down # Scroll down: PGDOWN
SCROLL_DOWN = frozenset({540}) SCROLL_DOWN = frozenset({338})
@classmethod @classmethod
def from_ord(cls, key: int) -> list['MenuKeys']: def from_ord(cls, key: int) -> list['MenuKeys']: