changeset 134:c80c7fc6a8fc

Handle backspace when selecting a project When selecting a project for moving an entry to another project it should be possible to use backspace to change input.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 31 Oct 2012 09:57:20 +0100
parents 78992300f421
children ce707fbb9666
files getan/states.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Wed Oct 31 09:55:59 2012 +0100
+++ b/getan/states.py	Wed Oct 31 09:57:20 2012 +0100
@@ -493,6 +493,11 @@
             self.reset_project_footer()
             return DefaultEntryListState(self.projectlist_state,
                                          self.controller, self.view)
+        if 'backspace' in key:
+            if len(self.proj_keys) > 0:
+                self.proj_keys = self.proj_keys[:-1]
+                self.set_project_footer()
+            return self
 
         if len(key) > 0 and len(key[0]) == 1 and self.proj is None:
             self.proj_keys += key[0]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)