aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/flowlist.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-07-08 18:36:49 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-07-08 18:36:49 +0200
commit2af2e60f1f2eea4e887bda69aea19a82f951a78f (patch)
treed03dd2cef2084d7da04add354adabe1ddd5057d9 /libmproxy/console/flowlist.py
parentf8243086f6f052d2fb88f2dc636717b999edb661 (diff)
parent1ebdda79029a66330983648326e2eef883415e03 (diff)
downloadmitmproxy-2af2e60f1f2eea4e887bda69aea19a82f951a78f.tar.gz
mitmproxy-2af2e60f1f2eea4e887bda69aea19a82f951a78f.tar.bz2
mitmproxy-2af2e60f1f2eea4e887bda69aea19a82f951a78f.zip
Merge pull request #673 from jlhonora/master
Match g/G shortcuts to less
Diffstat (limited to 'libmproxy/console/flowlist.py')
-rw-r--r--libmproxy/console/flowlist.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py
index bb23df75..46cd0de1 100644
--- a/libmproxy/console/flowlist.py
+++ b/libmproxy/console/flowlist.py
@@ -50,9 +50,9 @@ class EventListBox(urwid.ListBox):
self.master.clear_events()
key = None
elif key == "G":
- self.set_focus(0)
- elif key == "g":
self.set_focus(len(self.master.eventlist) - 1)
+ elif key == "g":
+ self.set_focus(0)
return urwid.ListBox.keypress(self, size, key)
@@ -338,10 +338,10 @@ class FlowListBox(urwid.ListBox):
self.master.clear_flows()
elif key == "e":
self.master.toggle_eventlog()
- elif key == "G":
+ elif key == "g":
self.master.state.set_focus(0)
signals.flowlist_change.send(self)
- elif key == "g":
+ elif key == "G":
self.master.state.set_focus(self.master.state.flow_count())
signals.flowlist_change.send(self)
elif key == "l":