# HG changeset patch # User Björn Ricks # Date 1314859149 -7200 # Node ID 8c7e0fd31e886b08c33ecff4b2a6122e6163f172 # Parent 19e9d76a10fb55d0a0f076e92d663ca66133087e 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. diff -r 19e9d76a10fb -r 8c7e0fd31e88 getan/states.py --- 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: