Mercurial > libervia-backend
changeset 2012:53587e738aca
primitivus: dont call chatStateComposing where history keys are pressed
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 17 Jul 2016 19:44:15 +0200 |
parents | d95a6d553bec |
children | b536dd121da1 |
files | frontends/src/primitivus/primitivus |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Sun Jul 17 19:43:30 2016 +0200 +++ b/frontends/src/primitivus/primitivus Sun Jul 17 19:44:15 2016 +0200 @@ -166,7 +166,8 @@ else: if (self._mode == C.MODE_INSERTION and isinstance(self.host.selected_widget, quick_chat.QuickChat) - and key not in sat_widgets.FOCUS_KEYS): + and key not in sat_widgets.FOCUS_KEYS + and key not in (a_key['HISTORY_PREV'], a_key['HISTORY_NEXT'])): self.host.bridge.chatStateComposing(self.host.selected_widget.target, self.host.selected_widget.profile) return super(EditBar, self).keypress(size, key)