diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-08-24 12:16:56 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-08-24 12:16:56 +0000 |
| commit | 65e19746f08f1287005861692322cdf868b06dc6 (patch) | |
| tree | 67674e5b2a111f7674f80b3957e10358b914b5d5 /lib/python/Screens/ChannelSelection.py | |
| parent | e09309bd7f69dbc98f471e28e01e2ad21ab7a757 (diff) | |
| download | enigma2-65e19746f08f1287005861692322cdf868b06dc6.tar.gz enigma2-65e19746f08f1287005861692322cdf868b06dc6.zip | |
some NumericalInput and uncode/utf-8 fixes
Diffstat (limited to 'lib/python/Screens/ChannelSelection.py')
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 01feaab1..a8d605ea 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -480,6 +480,7 @@ class ChannelSelectionBase(Screen): self.servicelist = self["list"] self.numericalTextInput = NumericalTextInput() + self.numericalTextInput.setUseableChars(u'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ') self.servicePathTV = [ ] self.servicePathRadio = [ ] @@ -799,8 +800,10 @@ class ChannelSelectionBase(Screen): self.enterPath(self.bouquet_root) def keyNumberGlobal(self, number): - char = self.numericalTextInput.getKey(number) - self.servicelist.moveToChar(char) + unichar = self.numericalTextInput.getKey(number) + charstr = unichar.encode("utf-8") + if len(charstr) == 1: + self.servicelist.moveToChar(charstr[0]) def getRoot(self): return self.servicelist.getRoot() |
