mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +00:00
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…
x
Reference in New Issue
Block a user