aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/VirtualKeyBoard.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens/VirtualKeyBoard.py')
-rwxr-xr-xlib/python/Screens/VirtualKeyBoard.py8
1 files changed, 7 insertions, 1 deletions
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":