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

Method keypress

mitmproxy/tools/console/eventlog.py:39–44  ·  view source on GitHub ↗
(self, size, key)

Source from the content-addressed store, hash-verified

37 super().set_focus(index)
38
39 def keypress(self, size, key):
40 if key == "m_end":
41 self.set_focus(len(self.walker) - 1)
42 elif key == "m_start":
43 self.set_focus(0)
44 return super().keypress(size, key)
45
46 def add_event(self, entry: log.LogEntry):
47 if log.log_tier(self.master.options.console_eventlog_verbosity) < log.log_tier(

Callers

nothing calls this directly

Calls 1

set_focusMethod · 0.95

Tested by

no test coverage detected