Merge branch 'master' of https://github.com/OpenPLi/enigma2
[openblackhole/openblackhole-enigma2.git] / lib / python / Screens / InputBox.py
index 802ca90..55de9c7 100644 (file)
@@ -46,7 +46,14 @@ class InputBox(Screen):
                }, -1)
 
                if self["input"].type == Input.TEXT:
-                       self.onExecBegin.append(self.setKeyboardModeAscii)
+                       try:
+                               vumachine = file("/proc/stb/info/vumodel").read().strip()
+                               if vumachine == "ultimo" or vumachine == "zero":
+                                       self.onExecBegin.append(self.setKeyboardModeNone)
+                               else:
+                                       self.onExecBegin.append(self.setKeyboardModeAscii)
+                       except:
+                               self.onExecBegin.append(self.setKeyboardModeAscii)
                else:
                        self.onExecBegin.append(self.setKeyboardModeNone)