diff options
author | Maximilian Hils <git@maximilianhils.com> | 2020-04-08 17:41:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 17:41:43 +0200 |
commit | 4d6886a0f4ebbf6bc66b74fa548ff724ba2ad660 (patch) | |
tree | afe4b9edb31e5fc6752f9c855fe72b549e7f840f /mitmproxy | |
parent | 3ebf112d6d7f7b3484d51e2ac51b593cd5b1a5bb (diff) | |
parent | 4d2cb321d6fbbb1813fd9ae4d38568be8d3d4cb4 (diff) | |
download | mitmproxy-4d6886a0f4ebbf6bc66b74fa548ff724ba2ad660.tar.gz mitmproxy-4d6886a0f4ebbf6bc66b74fa548ff724ba2ad660.tar.bz2 mitmproxy-4d6886a0f4ebbf6bc66b74fa548ff724ba2ad660.zip |
Merge pull request #3912 from KevCui/master
#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"], |