# HG changeset patch # User Goffi # Date 1468777455 -7200 # Node ID 53587e738aca1519cc3cbb2bf18fac7fcaaaff95 # Parent d95a6d553becd4f99eebbb3b833a460a3dc55786 primitivus: dont call chatStateComposing where history keys are pressed diff -r d95a6d553bec -r 53587e738aca frontends/src/primitivus/primitivus --- 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)