From 44fb42185f0e177b775c5e4f11249a55390048f6 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 31 Mar 2015 15:59:54 +1300 Subject: [PATCH] console: fix body scrolling --- libmproxy/console/searchable.py | 2 +- libmproxy/console/tabs.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libmproxy/console/searchable.py b/libmproxy/console/searchable.py index 9d66c7185..a723dca81 100644 --- a/libmproxy/console/searchable.py +++ b/libmproxy/console/searchable.py @@ -36,7 +36,7 @@ class Searchable(urwid.ListBox): if key == "N": self.find_next(True) else: - return key + super(self.__class__, self).keypress(size, key) def set_search(self, text): self.state.last_search = text diff --git a/libmproxy/console/tabs.py b/libmproxy/console/tabs.py index b8943ad4f..bb188c28c 100644 --- a/libmproxy/console/tabs.py +++ b/libmproxy/console/tabs.py @@ -33,3 +33,4 @@ class Tabs(urwid.WidgetWrap): body = self.tabs[self.tab_offset][1](), header = headers ) + self._w.set_focus("body")