primitivus: EditBar doesn't propagate key pressed anymore if it manage a 'up' or 'down' event (history event)

This commit is contained in:
Goffi 2014-03-21 15:36:01 +01:00
commit 399ac31e05

View file

@ -146,8 +146,10 @@ class EditBar(sat_widgets.ModalEdit):
self.app._updateInputHistory(mode=self._modes[key][0])
if key == "up":
self.app._updateInputHistory(self.get_edit_text(), -1, history_cb, self.mode)
return
elif key == "down":
self.app._updateInputHistory(self.get_edit_text(), +1, history_cb, self.mode)
return
elif key == "enter":
self.app._updateInputHistory(self.get_edit_text(), mode=self.mode)
else: