Skip to content

Commit

Permalink
examples/terminal_emulator.py: Fix char get in on_key()
Browse files Browse the repository at this point in the history
  • Loading branch information
konosubakonoakua committed Feb 27, 2024
1 parent eac6000 commit 69101ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/terminal_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def render(self):
return self._display

async def on_key(self, event: events.Key) -> None:
char = self.ctrl_keys.get(event.key) or event.char
char = self.ctrl_keys.get(event.key) or event.character
await self.send_queue.put(["stdin", char])

async def recv(self):
Expand Down

0 comments on commit 69101ce

Please sign in to comment.