changeset 139:6a19e721fbd1

Allow to use backspace to change selecting project
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 31 Oct 2012 15:31:20 +0100
parents bb6ddef4f88f
children 7413197aba45
files getan/states.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Wed Oct 31 14:23:00 2012 +0100
+++ b/getan/states.py	Wed Oct 31 15:31:20 2012 +0100
@@ -121,6 +121,13 @@
         if 'esc' in key:
             self.reset()
             return PausedProjectsState(self.controller, self.view)
+
+        if 'backspace' in key:
+            if len(self.proj_keys) > 0:
+                self.proj_keys = self.proj_keys[:-1]
+                self.set_footer_text()
+            return self
+
         else:
             if len(key) > 0 and len(key[0]) == 1:
                 self.proj_keys += key[0]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)