From 866a93a8bc28fed47dde04f49c13592a7163bff4 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 8 Feb 2012 22:28:15 +1300 Subject: Start consolidating keybindings. I want each view to have a more coherent set of bindings. This means minimizing the global bindings, and making some bindings accessible only from screens related to their functionality. --- libmproxy/console/connlist.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libmproxy/console/connlist.py') diff --git a/libmproxy/console/connlist.py b/libmproxy/console/connlist.py index 1d34fba9..d9ef258b 100644 --- a/libmproxy/console/connlist.py +++ b/libmproxy/console/connlist.py @@ -4,12 +4,15 @@ import common def _mkhelp(): text = [] keys = [ + ("A", "accept all intercepted connections"), + ("a", "accept this intercepted connection"), ("C", "clear connection list or eventlog"), ("d", "delete connection from view"), ("v", "toggle eventlog"), ("X", "kill and delete connection, even if it's mid-intercept"), ("tab", "tab between eventlog and connection list"), ("enter", "view connection"), + ("|", "run script on this flow"), ] text.extend(common.format_keyvals(keys, key="key", val="text", indent=4)) return text @@ -117,10 +120,13 @@ class ConnectionItem(common.WWrap): self.master.view_flow(self.flow) elif key == "|": self.master.path_prompt( - "Send flow to script: ", self.state.last_script, - self.master.run_script_once, self.flow + "Send flow to script: ", + self.state.last_script, + self.master.run_script_once, + self.flow ) - return key + else: + return key class ConnectionListView(urwid.ListWalker): -- cgit v1.2.3