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

Method keypress

mitmproxy/tools/console/keybindings.py:95–105  ·  view source on GitHub ↗
(self, size, key)

Source from the content-addressed store, hash-verified

93 super().__init__(self.walker)
94
95 def keypress(self, size, key):
96 if key == "m_select":
97 foc, idx = self.get_focus()
98 # Act here
99 elif key == "m_start":
100 self.set_focus(0)
101 self.walker._modified()
102 elif key == "m_end":
103 self.set_focus(len(self.walker.bindings) - 1)
104 self.walker._modified()
105 return super().keypress(size, key)
106
107
108class KeyHelp(urwid.Frame):

Callers

nothing calls this directly

Calls 4

_modifiedMethod · 0.80
get_focusMethod · 0.45
set_focusMethod · 0.45
keypressMethod · 0.45

Tested by

no test coverage detected