From 6aa7454f927ebb75d6ffc57d02387bdacc7f7283 Mon Sep 17 00:00:00 2001 From: gecko655 Date: Fri, 30 Oct 2015 12:32:50 +0900 Subject: [PATCH] Use ctrl+f and ctrl+b to scroll a page --- libmproxy/console/common.py | 4 ++++ libmproxy/console/help.py | 1 + 2 files changed, 5 insertions(+) diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index 48cb0f879..1a72fa2a2 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -96,6 +96,10 @@ def format_keyvals(lst, key="key", val="text", indent=0): def shortcuts(k): if k == " ": k = "page down" + elif k == "ctrl f": + k = "page down" + elif k == "ctrl b": + k = "page up" elif k == "j": k = "down" elif k == "k": diff --git a/libmproxy/console/help.py b/libmproxy/console/help.py index ba87348de..747480301 100644 --- a/libmproxy/console/help.py +++ b/libmproxy/console/help.py @@ -31,6 +31,7 @@ class HelpView(urwid.ListBox): ("g, G", "go to beginning, end"), ("space", "page down"), ("pg up/down", "page up/down"), + ("ctrl+b/ctrl+f", "page up/down"), ("arrows", "up, down, left, right"), ] text.extend(