diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-06-06 12:59:42 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-06-06 12:59:42 +0000 |
| commit | 4df6b9f98ceaff32e61857cf09d385c3ee766b51 (patch) | |
| tree | 3fb5b6f8964ead1efa8702dfc2fc776edac4af32 /lib/python/Components/Input.py | |
| parent | ee91b5df227327a79292d130410316218318f9d5 (diff) | |
| download | enigma2-4df6b9f98ceaff32e61857cf09d385c3ee766b51.tar.gz enigma2-4df6b9f98ceaff32e61857cf09d385c3ee766b51.zip | |
fix up/down on inputs when cursor is at the rightmost position
Diffstat (limited to 'lib/python/Components/Input.py')
| -rw-r--r-- | lib/python/Components/Input.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/Input.py b/lib/python/Components/Input.py index 3c09ab9f..4d3c8a1d 100644 --- a/lib/python/Components/Input.py +++ b/lib/python/Components/Input.py @@ -116,7 +116,7 @@ class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput): self.allmarked = False if self.type == self.TEXT: self.timeout() - if self.Text[self.currPos] == "9" or self.Text[self.currPos] == " ": + if self.currPos == len(self.Text) or self.Text[self.currPos] == "9" or self.Text[self.currPos] == " ": newNumber = "0" else: newNumber = str(int(self.Text[self.currPos]) + 1) @@ -127,7 +127,7 @@ class Input(VariableText, HTMLComponent, GUIComponent, NumericalTextInput): self.allmarked = False if self.type == self.TEXT: self.timeout() - if self.Text[self.currPos] == "0" or self.Text[self.currPos] == " ": + if self.currPos == len(self.Text) or self.Text[self.currPos] == "0" or self.Text[self.currPos] == " ": newNumber = "9" else: newNumber = str(int(self.Text[self.currPos]) - 1) |
