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

Method get_focus

mitmproxy/tools/console/keybindings.py:60–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 return KeyItem(self, binding, pos == self.index)
59
60 def get_focus(self):
61 return self.focus_obj, self.index
62
63 def set_focus(self, index):
64 binding = self.bindings[index]

Callers 2

keypressMethod · 0.45
get_focused_bindingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected