MCPcopy
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/tools/console/keybindings.py:38–46  ·  view source on GitHub ↗
(self, master, keybinding_focus_change)

Source from the content-addressed store, hash-verified

36
37class KeyListWalker(urwid.ListWalker):
38 def __init__(self, master, keybinding_focus_change):
39 self.keybinding_focus_change = keybinding_focus_change
40 self.master = master
41
42 self.index = 0
43 self.focusobj = None
44 self.bindings = list(master.keymap.list("all"))
45 self.set_focus(0)
46 signals.keybindings_change.connect(self.sig_modified)
47
48 def sig_modified(self):
49 self.bindings = list(self.master.keymap.list("all"))

Callers

nothing calls this directly

Calls 3

set_focusMethod · 0.95
listMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected