Mercurial > libervia-backend
changeset 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 | b70fb2ac5997 |
children | 1a3ba959f0ab |
files | frontends/src/primitivus/primitivus |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Fri Mar 21 15:04:13 2014 +0100 +++ b/frontends/src/primitivus/primitivus Fri Mar 21 15:36:01 2014 +0100 @@ -146,8 +146,10 @@ 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: