From c8e990f85eac998287409c3d38b8a9343fb8fec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20B=C3=B6hme?= Date: Sat, 25 Mar 2017 14:24:30 +0100 Subject: [PATCH] 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. --- src/roster_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index f265252b3..e134284b2 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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():