Fix crash when entering unicode characters from keyboard into an input popup
This commit is contained in:
parent
dcd3bc10e1
commit
a66bd5e847
|
@ -718,7 +718,7 @@ class TextInput(InputField):
|
|||
try:
|
||||
uchar = stroke.decode(self.parent.encoding)
|
||||
except UnicodeDecodeError:
|
||||
c = self.parent.stdscr.getch()
|
||||
c = self.parent.parent.stdscr.getch()
|
||||
stroke += chr(c)
|
||||
if uchar:
|
||||
if self.cursor == len(self.value):
|
||||
|
|
Loading…
Reference in New Issue