X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FSoftwareManager%2Fplugin.py;h=090faf2035f837d72a0f8416ad552c87319bb3e1;hp=2090aee701844dc12b67177337575c96d1baeb9e;hb=HEAD;hpb=62398546079455cab5f63f5988a1f2a6bc7e3e07 diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py index 2090aee..090faf2 100644 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py @@ -1581,8 +1581,9 @@ class IPKGSource(Screen): else: self["text"] = Input(text, maxSize=False, visible_width = 55, type=Input.TEXT) - self["actions"] = NumberActionMap(["WizardActions", "InputActions", "TextEntryActions", "KeyboardInputActions","ShortcutActions"], + self["actions"] = NumberActionMap(["WizardActions", "InputActions", "TextEntryActions", "KeyboardInputActions","ShortcutActions", "InputAsciiActions"], { + "gotAsciiCode": self.gotAsciiCode, "ok": self.go, "back": self.close, "red": self.close, @@ -1607,6 +1608,9 @@ class IPKGSource(Screen): self.onLayoutFinish.append(self.layoutFinished) + def gotAsciiCode(self): + self["text"].handleAscii(getPrevAsciiCode()) + def layoutFinished(self): self.setWindowTitle() self["text"].right() @@ -1728,7 +1732,13 @@ class PacketManager(Screen, NumericalTextInput): self.setNextIdx(keyvalue[0]) def keyGotAscii(self): - keyvalue = unichr(getPrevAsciiCode()).encode("utf-8") + from Components.config import getCharValue + unichar = getCharValue(getPrevAsciiCode()) + if unichar is None: + return + if len(str(unichar)) > 1: + return + keyvalue = unichar.encode("utf-8") if len(keyvalue) == 1: self.setNextIdx(keyvalue[0])