aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@2mac.waldobjekt.org>2009-06-19 19:09:06 +0200
committerFelix Domke <tmbinc@2mac.waldobjekt.org>2009-06-19 19:09:06 +0200
commit4e3471bb70425fb05c3a3cd41ac1756d001307ab (patch)
tree6f34a19adde73b5ecb60439bc61699c63593d1ad /lib/python/Components
parente3922901f71a44a74c320504a4a61f7b2906aaf2 (diff)
parent3455b60a05c4c3f7a59c2e5949f132bb04134969 (diff)
downloadenigma2-4e3471bb70425fb05c3a3cd41ac1756d001307ab.tar.gz
enigma2-4e3471bb70425fb05c3a3cd41ac1756d001307ab.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components')
-rwxr-xr-xlib/python/Components/config.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 4df02d5d..32e86272 100755
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -913,13 +913,14 @@ class ConfigText(ConfigElement, NumericalTextInput):
self.timeout()
self.overwrite = not self.overwrite
elif key == KEY_ASCII:
- self.timeout()
- newChar = unichr(getPrevAsciiCode())
- if self.allmarked:
- self.deleteAllChars()
- self.allmarked = False
- self.insertChar(newChar, self.marked_pos, False)
- self.marked_pos += 1
+ self.timeout()
+ newChar = unichr(getPrevAsciiCode())
+ if not self.useableChars or newChar in self.useableChars:
+ if self.allmarked:
+ self.deleteAllChars()
+ self.allmarked = False
+ self.insertChar(newChar, self.marked_pos, False)
+ self.marked_pos += 1
elif key in KEY_NUMBERS:
owr = self.lastKey == getKeyNumber(key)
newChar = self.getKey(getKeyNumber(key))