Do not close chat window on ESC key when roster filtering is active

When the roster window active it can be filtered by starting to type.
If the window behavior "single window for everything" is selected,
trying to abort the filtering by pressing the ESC key also closes a chat
window. Fix this behavior by stopping event propagation in case the ESC
key is pressed while roster filtering is active.

Fixes issue #8548.
This commit is contained in:
Markus Böhme 2017-03-25 14:24:30 +01:00
parent ba0408855c
commit c8e990f85e
1 changed files with 1 additions and 1 deletions

View File

@ -3805,7 +3805,7 @@ class RosterWindow:
if event.keyval == Gdk.KEY_Escape:
if self.rfilter_enabled:
self.disable_rfilter()
return
return True
if gajim.interface.msg_win_mgr.mode == \
MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER and \
gajim.interface.msg_win_mgr.one_window_opened():