changeset 93:bcf914880f80

Project keys can be larger then 1 Use keypress method of HandleUserInputState to record keys longer then one letter
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 31 Aug 2011 15:41:13 +0200
parents 565825db59d2
children 159a1ef0fd7c
files getan/states.py
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Wed Aug 17 12:48:39 2011 +0200
+++ b/getan/states.py	Wed Aug 31 15:41:13 2011 +0200
@@ -502,19 +502,6 @@
         self.view.frame.set_focus('footer')
         self.project = project
 
-    def keypress(self, key):
-        logger.debug("HandleUserInputState: handle key '%r'" % key)
-        pos = self.footer.edit_pos
-
-        if 'esc' in key:
-            return self.exit()
-        elif 'enter' in key:
-            return self.enter()
-        elif len(key) >= 1 and len(key[0]) == 1:
-            self.footer.set_edit_pos(pos)
-            self.footer.set_edit_text(key[0])
-            return self
-
     def enter(self):
         key = self.footer.get_edit_text()
         if key == '':
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)