mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Use ctrl+f and ctrl+b to scroll a page
This commit is contained in:
parent
65c08ec899
commit
6aa7454f92
@ -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":
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user