(self)
| 26 | self.type = interaction.KEY |
| 27 | |
| 28 | def encode(self) -> dict: |
| 29 | return {"type": self.type, "id": self.name, "actions": [acts.encode() for acts in self.actions]} |
| 30 | |
| 31 | def create_key_down(self, key) -> None: |
| 32 | self.add_action(TypingInteraction(self, "keyDown", key)) |