From 4d2cb321d6fbbb1813fd9ae4d38568be8d3d4cb4 Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Tue, 7 Apr 2020 16:10:26 +0200 Subject: #3911 Support keybinding for different contexts with different commands --- mitmproxy/tools/console/keymap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mitmproxy') diff --git a/mitmproxy/tools/console/keymap.py b/mitmproxy/tools/console/keymap.py index 01ec9a0a..a42225cf 100644 --- a/mitmproxy/tools/console/keymap.py +++ b/mitmproxy/tools/console/keymap.py @@ -202,7 +202,7 @@ class KeymapConfig: user_ctxs = v.get("ctx", ["global"]) try: km._check_contexts(user_ctxs) - km.remove(v["key"], Contexts) + km.remove(v["key"], user_ctxs) km.add( key = v["key"], command = v["cmd"], -- cgit v1.2.3