MCPcopy
hub / github.com/Textualize/textual / on_key

Method on_key

tests/test_pilot.py:55–56  ·  view source on GitHub ↗
(self, event: events.Key)

Source from the content-addressed store, hash-verified

53
54 class TestApp(App[None]):
55 def on_key(self, event: events.Key) -> None:
56 keys_pressed.append(event.character)
57
58 async with TestApp().run_test() as pilot:
59 for char in KEY_CHARACTERS_TO_TEST:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected