Use ctrl+f and ctrl+b to scroll a page

This commit is contained in:
gecko655 2015-10-30 12:32:50 +09:00
parent 65c08ec899
commit 6aa7454f92
2 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,10 @@ def format_keyvals(lst, key="key", val="text", indent=0):
def shortcuts(k): def shortcuts(k):
if k == " ": if k == " ":
k = "page down" k = "page down"
elif k == "ctrl f":
k = "page down"
elif k == "ctrl b":
k = "page up"
elif k == "j": elif k == "j":
k = "down" k = "down"
elif k == "k": elif k == "k":

View File

@ -31,6 +31,7 @@ class HelpView(urwid.ListBox):
("g, G", "go to beginning, end"), ("g, G", "go to beginning, end"),
("space", "page down"), ("space", "page down"),
("pg up/down", "page up/down"), ("pg up/down", "page up/down"),
("ctrl+b/ctrl+f", "page up/down"),
("arrows", "up, down, left, right"), ("arrows", "up, down, left, right"),
] ]
text.extend( text.extend(