MCPcopy
hub / github.com/mitmproxy/mitmproxy / keypress

Method keypress

mitmproxy/tools/console/window.py:302–305  ·  view source on GitHub ↗
(self, size, k)

Source from the content-addressed store, hash-verified

300 return True
301
302 def keypress(self, size, k):
303 k = super().keypress(size, k)
304 if k:
305 return self.master.keymap.handle(self.focus_stack().top_widget().keyctx, k)
306
307
308class Screen(urwid.raw_display.Screen):

Callers 2

mouse_eventMethod · 0.95
keypressMethod · 0.45

Calls 3

focus_stackMethod · 0.95
top_widgetMethod · 0.80
handleMethod · 0.45

Tested by

no test coverage detected