aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/tools/console/flowlist.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/tools/console/flowlist.py b/mitmproxy/tools/console/flowlist.py
index 31d48ee3..044f8f05 100644
--- a/mitmproxy/tools/console/flowlist.py
+++ b/mitmproxy/tools/console/flowlist.py
@@ -57,6 +57,10 @@ class LogBufferBox(urwid.ListBox):
self.master = master
urwid.ListBox.__init__(self, master.logbuffer)
+ def set_focus(self, index):
+ if 0 <= index < len(self.master.logbuffer):
+ super().set_focus(index)
+
def keypress(self, size, key):
key = common.shortcuts(key)
if key == "z":