From 1806c7b99229f67aba07d971863f9ed5a725ffbe Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 28 Nov 2005 03:16:57 +0000 Subject: you can now delete characters in the timerentry description with the mute-key --- lib/python/Components/config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components') 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, -- cgit v1.2.3