changeset 267:9fce005e5fc6

Redirect keyinput to GetanView footer when adding a new project
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 11 Apr 2013 12:41:53 +0200
parents c5baa934b24d
children 06157568d287
files getan/states.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Thu Apr 11 12:40:48 2013 +0200
+++ b/getan/states.py	Thu Apr 11 12:41:53 2013 +0200
@@ -624,12 +624,17 @@
     def __init__(self, controller, view):
         super(AlterProjectState, self).__init__(controller, view, None,
                 controller.view.get_frame().get_footer())
+        self.controller.view.set_focus('footer')
 
     def exit(self):
         self.controller.view.set_footer_text(self.msg('choose_proj'), 'question')
         self.set_next_state(PausedProjectsState(self.controller, self.view))
         return True
 
+    def keypress(self, size, key):
+        """ Direct key to frame of GetanView """
+        self.controller.view.frame.keypress(size, key)
+
 
 class AddProjectKeyState(AlterProjectState):
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)