aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUjjwal Verma <ujjwalverma1111@gmail.com>2017-06-06 03:16:00 +0530
committerUjjwal Verma <ujjwalverma1111@gmail.com>2017-06-06 03:16:00 +0530
commitdfa693ebd31ea12ac91fd02b72a382f98fb12f53 (patch)
treecd1a4333ed778380997d5165df0f5efbfcc2bc73
parent387235b5809bc1b86f748f5da56d03eb946d1c44 (diff)
downloadmitmproxy-dfa693ebd31ea12ac91fd02b72a382f98fb12f53.tar.gz
mitmproxy-dfa693ebd31ea12ac91fd02b72a382f98fb12f53.tar.bz2
mitmproxy-dfa693ebd31ea12ac91fd02b72a382f98fb12f53.zip
Fixes #2377 #2323
-rw-r--r--mitmproxy/tools/console/eventlog.py2
-rw-r--r--mitmproxy/tools/console/flowlist.py2
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):