urwid windows: use utf8

This commit is contained in:
Maximilian Hils 2022-03-13 19:03:23 +01:00
parent 3387dac679
commit 6c4b3954aa

View File

@ -1168,7 +1168,7 @@ class ReadInputThread(threading.Thread):
if inp.EventType == win32.EventType.KEY_EVENT:
if not inp.Event.KeyEvent.bKeyDown:
continue
self._input.send(inp.Event.KeyEvent.uChar.AsciiChar)
self._input.send(inp.Event.KeyEvent.uChar.UnicodeChar.encode("utf8"))
elif inp.EventType == win32.EventType.WINDOW_BUFFER_SIZE_EVENT:
self._resize()
else: