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

Method action_record

tests/test_binding_inheritance.py:192–198  ·  view source on GitHub ↗

Record a key, as used from a binding. Args: key (str): The name of the key to record.

(self, key: str)

Source from the content-addressed store, hash-verified

190 self.pressed_keys: list[str] = []
191
192 async def action_record(self, key: str) -> None:
193 """Record a key, as used from a binding.
194
195 Args:
196 key (str): The name of the key to record.
197 """
198 self.pressed_keys.append(key)
199
200 def all_recorded(self, marker_prefix: str = "") -> None:
201 """Were all the bindings recorded from the presses?

Callers 6

action_local_recordMethod · 0.80
action_screen_recordMethod · 0.80
action_screen_recordMethod · 0.80
action_local_recordMethod · 0.80
action_screen_recordMethod · 0.80
action_screen_recordMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected