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

Method mouse_event

mitmproxy/tools/console/window.py:34–37  ·  view source on GitHub ↗
(self, size, event, button, col, row, focus)

Source from the content-addressed store, hash-verified

32 super().__init__(widget, header=header)
33
34 def mouse_event(self, size, event, button, col, row, focus):
35 if event == "mouse press" and button == 1 and not self.is_focused:
36 self.window.switch()
37 return super().mouse_event(size, event, button, col, row, focus)
38
39 def keypress(self, size, key):
40 # Make sure that we don't propagate cursor events outside of the widget.

Callers

nothing calls this directly

Calls 2

switchMethod · 0.80
mouse_eventMethod · 0.45

Tested by

no test coverage detected