diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-28 03:16:57 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-28 03:16:57 +0000 |
| commit | 1806c7b99229f67aba07d971863f9ed5a725ffbe (patch) | |
| tree | 4b3d57383c882daeab8d850371d337eb84f4d7bb /lib/python | |
| parent | e00204d3adde3026821f5c70be7243ec4b3aef43 (diff) | |
| download | enigma2-1806c7b99229f67aba07d971863f9ed5a725ffbe.tar.gz enigma2-1806c7b99229f67aba07d971863f9ed5a725ffbe.zip | |
you can now delete characters in the timerentry description with the mute-key
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/config.py | 3 | ||||
| -rw-r--r-- | lib/python/Screens/TimerEntry.py | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 0245a4f4..7137845f 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -293,6 +293,8 @@ class configText: def handleKey(self, key): #this will no change anything on the value itself #so we can handle it here in gui element + if key == config.key["delete"]: + self.parent.value = self.parent.value[0:self.markedPos] + self.parent.value[self.markedPos + 1:] if key == config.key["prevElement"]: self.textInput.nextKey() self.markedPos -= 1 @@ -329,6 +331,7 @@ class Config: self.key = { "choseElement": 0, "prevElement": 1, "nextElement": 2, + "delete": 3, "0": 10, "1": 11, "2": 12, diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py index b73b7c0d..fff51db5 100644 --- a/lib/python/Screens/TimerEntry.py +++ b/lib/python/Screens/TimerEntry.py @@ -19,13 +19,14 @@ class TimerEntry(Screen): self.createConfig() - self["actions"] = NumberActionMap(["SetupActions"], + self["actions"] = NumberActionMap(["SetupActions", "TextEntryActions"], { "ok": self.keySelect, "save": self.keyGo, "cancel": self.keyCancel, "left": self.keyLeft, "right": self.keyRight, + "delete": self.keyDelete, "1": self.keyNumberGlobal, "2": self.keyNumberGlobal, "3": self.keyNumberGlobal, @@ -175,6 +176,9 @@ class TimerEntry(Screen): self["config"].handleKey(config.key["prevElement"]) self.newConfig() + def keyDelete(self): + self["config"].handleKey(config.key["delete"]) + def keyRightCallback(self, configPath): currentConfigPath = self["config"].getCurrent()[1].parent.getConfigPath() # check if we are still on the same config entry |
