changeset 74:057e0fc8a74d

switch to EditEntryState when 'e' is pressed in the EntryList to be able to edit the entry description
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 25 May 2011 13:41:02 +0200
parents 745c644d9564
children fa53e2ec484d
files getan/states.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Wed May 25 13:36:17 2011 +0200
+++ b/getan/states.py	Wed May 25 13:41:02 2011 +0200
@@ -368,6 +368,11 @@
             if self.view.selection:
                 return MoveEntryState(self.projectlist_state,
                                       self.controller, self.view)
+        if 'e' in key:
+            entry = self.view.item_in_focus()
+            if entry:
+                return EditEntryState(self.projectlist_state,
+                                      self.controller, self.view, entry)
         return self
 
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)