X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0447cc6150e7100bb749e8dfb49ae161eb349691..25af2f392e5a88feb892d7bb2c889256dd74abbb:/lib/python/Screens/VirtualKeyBoard.py diff --git a/lib/python/Screens/VirtualKeyBoard.py b/lib/python/Screens/VirtualKeyBoard.py index bde6f75d..19500ed7 100755 --- a/lib/python/Screens/VirtualKeyBoard.py +++ b/lib/python/Screens/VirtualKeyBoard.py @@ -195,13 +195,19 @@ class VirtualKeyBoard(Screen): selectedKey = self.selectedKey + text = None + for x in list: if selectedKey < 12: - text = x[selectedKey] + if selectedKey < len(x): + text = x[selectedKey] break else: selectedKey -= 12 + if text is None: + return + text = text.encode("utf-8") if text == "EXIT":