Philipp Hörist pushed to branch master at gajim / gajim


Commits:
6b81572b by Philipp Hörist at 2025-11-23T23:21:31+01:00
change: Application: Don’t close application on ESC

Close application on ESC only if it has been set to close chats and
no chat is open anymore. Mirroing the behavior of browsers if you
close all tabs.

Fixes #12546

- - - - -


1 changed file:

- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -517,8 +517,10 @@ def _on_action(
                 self._chat_page.remove_chat(contact.account, contact.jid)
                 return None
 
-        if action_name in ("escape", "close-chat"):
-            # Attempt to close Gajim window if no chat has been selected
+        if action_name == "escape" and app.settings.get("escape_key_closes"):
+            self.close()
+
+        elif action_name == "close-chat":
             self.close()
 
         elif action_name == "restore-chat":



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6b81572b91446860d277257c2f755d44e29cc34f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6b81572b91446860d277257c2f755d44e29cc34f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to