Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 913:d08cbdd566e2
primitivus: EditBar doesn't propagate key pressed anymore if it manage a 'up' or 'down' event (history event)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 21 Mar 2014 15:36:01 +0100 |
parents | b12706d164d7 |
children | a9401694d2dc |
comparison
equal
deleted
inserted
replaced
912:b70fb2ac5997 | 913:d08cbdd566e2 |
---|---|
144 self.app._updateInputHistory(mode='NORMAL') | 144 self.app._updateInputHistory(mode='NORMAL') |
145 if self._mode == 'NORMAL' and key in self._modes: | 145 if self._mode == 'NORMAL' and key in self._modes: |
146 self.app._updateInputHistory(mode=self._modes[key][0]) | 146 self.app._updateInputHistory(mode=self._modes[key][0]) |
147 if key == "up": | 147 if key == "up": |
148 self.app._updateInputHistory(self.get_edit_text(), -1, history_cb, self.mode) | 148 self.app._updateInputHistory(self.get_edit_text(), -1, history_cb, self.mode) |
149 return | |
149 elif key == "down": | 150 elif key == "down": |
150 self.app._updateInputHistory(self.get_edit_text(), +1, history_cb, self.mode) | 151 self.app._updateInputHistory(self.get_edit_text(), +1, history_cb, self.mode) |
152 return | |
151 elif key == "enter": | 153 elif key == "enter": |
152 self.app._updateInputHistory(self.get_edit_text(), mode=self.mode) | 154 self.app._updateInputHistory(self.get_edit_text(), mode=self.mode) |
153 else: | 155 else: |
154 contact = self.app.contact_list.getContact() | 156 contact = self.app.contact_list.getContact() |
155 if contact: | 157 if contact: |