MCPcopy
hub / github.com/mitmproxy/mitmproxy / key_unbind_focus

Method key_unbind_focus

mitmproxy/tools/console/consoleaddons.py:725–733  ·  view source on GitHub ↗

Un-bind the shortcut key currently focused in the key binding viewer.

(self)

Source from the content-addressed store, hash-verified

723
724 @command.command("console.key.unbind.focus")
725 def key_unbind_focus(self) -> None:
726 """
727 Un-bind the shortcut key currently focused in the key binding viewer.
728 """
729 b = self._keyfocus()
730 try:
731 self.master.keymap.remove(b.key, b.contexts)
732 except ValueError as v:
733 raise exceptions.CommandError(v)
734
735 @command.command("console.key.execute.focus")
736 def key_execute_focus(self) -> None:

Callers

nothing calls this directly

Calls 2

_keyfocusMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected