Fix crash when entering unicode characters from keyboard into an input popup

This commit is contained in:
Asmageddon 2012-06-08 17:48:08 +02:00
parent dcd3bc10e1
commit a66bd5e847
1 changed files with 1 additions and 1 deletions

View File

@ -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):