primitivus: dont call chatStateComposing where history keys are pressed

This commit is contained in:
Goffi 2016-07-17 19:44:15 +02:00
commit 6422e8733d

View file

@ -166,7 +166,8 @@ class EditBar(sat_widgets.ModalEdit):
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)