From dfa693ebd31ea12ac91fd02b72a382f98fb12f53 Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Tue, 6 Jun 2017 03:16:00 +0530 Subject: Fixes #2377 #2323 --- mitmproxy/tools/console/eventlog.py | 2 +- mitmproxy/tools/console/flowlist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mitmproxy/tools/console/eventlog.py b/mitmproxy/tools/console/eventlog.py index 0b8a3f8c..f5f48f88 100644 --- a/mitmproxy/tools/console/eventlog.py +++ b/mitmproxy/tools/console/eventlog.py @@ -23,7 +23,7 @@ class EventLog(urwid.ListBox): def keypress(self, size, key): if key == "z": - self.master.clear_events() + self.clear_events() key = None elif key == "m_end": self.set_focus(len(self.walker) - 1) diff --git a/mitmproxy/tools/console/flowlist.py b/mitmproxy/tools/console/flowlist.py index 4184eeb4..c28f991b 100644 --- a/mitmproxy/tools/console/flowlist.py +++ b/mitmproxy/tools/console/flowlist.py @@ -69,7 +69,7 @@ class FlowItem(urwid.WidgetWrap): def mouse_event(self, size, event, button, col, row, focus): if event == "mouse press" and button == 1: if self.flow.request: - self.master.view_flow(self.flow) + self.master.commands.call("console.view.flow @focus") return True def keypress(self, xxx_todo_changeme, key): -- cgit v1.2.3