diff options
author | wurstsalat <mailtrash@posteo.de> | 2023-06-08 23:51:36 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2023-11-01 00:38:58 +0300 |
commit | 56fdedb572845038afda74bf9e65de26e700ea16 (patch) | |
tree | 3c5d1feba08452146910987612f1e26c609c77d4 | |
parent | af6ebc3a4888b4ecdb6b8f39fc9fec270e50ca0b (diff) |
imprv: Close main window when pressing Escape key
Fixes #11543
-rw-r--r-- | gajim/gtk/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gajim/gtk/main.py b/gajim/gtk/main.py index 7e9d7991a..ea35929d3 100644 --- a/gajim/gtk/main.py +++ b/gajim/gtk/main.py @@ -480,6 +480,9 @@ class MainWindow(Gtk.ApplicationWindow, EventHelper): control.contact.jid) return None + if action_name == 'escape' and app.settings.get('escape_key_closes'): + self.emit('delete-event', Gdk.Event()) + if action_name == 'restore-chat': self._chat_page.restore_chat() |