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

Method current

mitmproxy/tools/console/window.py:250–259  ·  view source on GitHub ↗

Returns the active widget with a matching key context, including overlays. If multiple stacks have an active widget with a matching key context, the currently focused stack is preferred.

(self, keyctx)

Source from the content-addressed store, hash-verified

248 return stacks
249
250 def current(self, keyctx):
251 """
252 Returns the active widget with a matching key context, including overlays.
253 If multiple stacks have an active widget with a matching key context,
254 the currently focused stack is preferred.
255 """
256 for s in self.stacks_sorted_by_focus():
257 t = s.top_widget()
258 if t.keyctx == keyctx:
259 return t
260
261 def current_window(self, keyctx):
262 """

Callers 7

options_reset_currentMethod · 0.45
_grideditorMethod · 0.45
_keyfocusMethod · 0.45
get_widgetMethod · 0.45
keypressMethod · 0.45
runningMethod · 0.45
r7Function · 0.45

Calls 2

top_widgetMethod · 0.80

Tested by

no test coverage detected