aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/InputBox.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/python/Screens/InputBox.py b/lib/python/Screens/InputBox.py
index 47b800df..f3f97752 100644
--- a/lib/python/Screens/InputBox.py
+++ b/lib/python/Screens/InputBox.py
@@ -15,8 +15,9 @@ class InputBox(Screen):
self["text"] = Label(title)
self["input"] = Input(**kwargs)
- self["actions"] = NumberActionMap(["WizardActions", "InputBoxActions"],
+ self["actions"] = NumberActionMap(["WizardActions", "InputBoxActions", "AsciiActions"],
{
+ "gotAsciiCode": self.gotAsciiCode,
"ok": self.go,
"back": self.cancel,
"left": self.keyLeft,
@@ -33,7 +34,12 @@ class InputBox(Screen):
"9": self.keyNumberGlobal,
"0": self.keyNumberGlobal
}, -1)
-
+ rcinput = eRCInput.getInstance()
+ rcinput.setKeyboardMode(rcinput.kmAscii)
+
+ def gotAsciiCode(self):
+ self["input"].handleAscii(getPrevAsciiCode())
+
def keyLeft(self):
self["input"].left()
@@ -47,7 +53,11 @@ class InputBox(Screen):
self["input"].delete()
def go(self):
+ rcinput = eRCInput.getInstance()
+ rcinput.setKeyboardMode(rcinput.kmNone)
self.close(self["input"].getText())
def cancel(self):
- self.close(None) \ No newline at end of file
+ rcinput = eRCInput.getInstance()
+ rcinput.setKeyboardMode(rcinput.kmNone)
+ self.close(None)