Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
a38c90db by wurstsalat at 2022-10-28T21:41:51+02:00
fix: ChatActionProcessor: Popdown on focus out event

Fixes #11254

- - - - -


1 changed file:

- gajim/gtk/chat_action_processor.py


Changes:

=====================================
gajim/gtk/chat_action_processor.py
=====================================
@@ -14,6 +14,7 @@
 
 from __future__ import annotations
 
+from typing import Any
 from typing import cast
 from typing import Optional
 
@@ -53,6 +54,7 @@ def __init__(self, message_input: Gtk.TextView) -> None:
 
         self._message_input = message_input
         self._message_input.connect('key-press-event', self._on_key_press)
+        self._message_input.connect('focus-out-event', self._on_focus_out)
 
         self._buf = message_input.get_buffer()
         self._buf.connect('changed', self._on_changed)
@@ -105,6 +107,10 @@ def _on_key_press(self,
 
         return False
 
+    def _on_focus_out(self, *args: Any) -> bool:
+        self.popdown()
+        return False
+
     def _on_popover_closed(self, _popover: Gtk.Popover) -> None:
         self._active = False
         self._message_input.grab_focus()



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

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


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to