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

Method keypress

bpython/urwid.py:145–151  ·  view source on GitHub ↗
(self, size, key)

Source from the content-addressed store, hash-verified

143 super().__init__(*args, **kwargs)
144
145 def keypress(self, size, key):
146 if self.single:
147 urwid.emit_signal(self, "prompt_enter", self, key)
148 elif key == "enter":
149 urwid.emit_signal(self, "prompt_enter", self, self.get_edit_text())
150 else:
151 return super().keypress(size, key)
152
153
154urwid.register_signal(StatusbarEdit, "prompt_enter")

Callers

nothing calls this directly

Calls 1

keypressMethod · 0.45

Tested by

no test coverage detected