MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / handle_only

Method handle_only

mitmproxy/tools/console/keymap.py:167–176  ·  view source on GitHub ↗

Like handle, but ignores global bindings. Returns the key if it has not been handled, or None.

(self, context: str, key: str)

Source from the content-addressed store, hash-verified

165 return key
166
167 def handle_only(self, context: str, key: str) -> str | None:
168 """
169 Like handle, but ignores global bindings. Returns the key if it has
170 not been handled, or None.
171 """
172 b = self.get(context, key)
173 if b:
174 self.executor(b.command)
175 return None
176 return key
177
178
179keyAttrs = {

Callers 1

keypressMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected