mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Fix crash when entering unicode characters from keyboard into an input popup
This commit is contained in:
parent
dcd3bc10e1
commit
a66bd5e847
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ class TextInput(InputField):
|
||||||
try:
|
try:
|
||||||
uchar = stroke.decode(self.parent.encoding)
|
uchar = stroke.decode(self.parent.encoding)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
c = self.parent.stdscr.getch()
|
c = self.parent.parent.stdscr.getch()
|
||||||
stroke += chr(c)
|
stroke += chr(c)
|
||||||
if uchar:
|
if uchar:
|
||||||
if self.cursor == len(self.value):
|
if self.cursor == len(self.value):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue