We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd88a22 commit a77a58eCopy full SHA for a77a58e
gtk/src/toga_gtk/widgets/textinput.py
@@ -18,7 +18,11 @@ def create(self):
18
self.native.connect("focus-out-event", self.gtk_focus_out_event)
19
self.native.connect("key-press-event", self.gtk_key_press_event)
20
else: # pragma: no-cover-if-gtk3
21
- self.native.connect("changed", self.gtk_on_change)
+
22
+ # Ideally we would connect to the `changed` signal, but it is
23
+ # emitting two events each time text is changed
24
+ # https://gitlab.gnome.org/GNOME/gtk/-/issues/7077
25
+ self.native.connect("notify::text", self.gtk_on_change)
26
27
self.focus_controller = Gtk.EventControllerFocus.new()
28
self.native.add_controller(self.focus_controller)
0 commit comments