MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / keypress

Method keypress

mitmproxy/tools/console/help.py:15–21  ·  view source on GitHub ↗
(self, size, key)

Source from the content-addressed store, hash-verified

13 super().__init__(contents)
14
15 def keypress(self, size, key):
16 if key == "m_end":
17 self.set_focus(self.length - 1)
18 elif key == "m_start":
19 self.set_focus(0)
20 else:
21 return super().keypress(size, key)
22
23
24class HelpView(tabs.Tabs, layoutwidget.LayoutWidget):

Callers

nothing calls this directly

Calls 1

set_focusMethod · 0.45

Tested by

no test coverage detected