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

Method set_focus

mitmproxy/tools/console/keybindings.py:63–68  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

61 return self.focus_obj, self.index
62
63 def set_focus(self, index):
64 binding = self.bindings[index]
65 self.index = index
66 self.focus_obj = self._get(self.index)
67 self.keybinding_focus_change.send(binding.help or "")
68 self._modified()
69
70 def get_next(self, pos):
71 if pos >= len(self.bindings) - 1:

Callers 3

__init__Method · 0.95
sig_modifiedMethod · 0.95
keypressMethod · 0.45

Calls 3

_getMethod · 0.95
_modifiedMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected