diff options
author | Kevin Cui <krazycavin@gmail.com> | 2020-04-07 16:10:26 +0200 |
---|---|---|
committer | Kevin Cui <krazycavin@gmail.com> | 2020-04-07 16:10:26 +0200 |
commit | 4d2cb321d6fbbb1813fd9ae4d38568be8d3d4cb4 (patch) | |
tree | 004f7b6e26284c486f5c0ffd32d7d86d6825ca7f /mitmproxy | |
parent | fbe296aaba774b01348a55a6c9e10097bfd61b60 (diff) | |
download | mitmproxy-4d2cb321d6fbbb1813fd9ae4d38568be8d3d4cb4.tar.gz mitmproxy-4d2cb321d6fbbb1813fd9ae4d38568be8d3d4cb4.tar.bz2 mitmproxy-4d2cb321d6fbbb1813fd9ae4d38568be8d3d4cb4.zip |
#3911 Support keybinding for different contexts with different commands
Diffstat (limited to 'mitmproxy')
-rw-r--r-- | mitmproxy/tools/console/keymap.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"], |