changeset 96:8c7e0fd31e88

Return the current state if F1 is pressed F1 is a valid input and no other key processing should be done afterwards. This fixes a small issue in SelectProjectState which recognized f1 as a project name.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 01 Sep 2011 08:39:09 +0200
parents 19e9d76a10fb
children 99639833968d
files getan/states.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Thu Sep 01 08:19:26 2011 +0200
+++ b/getan/states.py	Thu Sep 01 08:39:09 2011 +0200
@@ -34,7 +34,7 @@
         logger.debug("ProjectState: handle key '%r'" % key)
         if 'f1' in key:
             self.view.switch_time_mode()
-            return None
+            return self
 
         if 'tab' in key:
             if not self.controller.entries_view.rows:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)