GNOME Bugzilla – Bug 381254
GtkComboBox needs "activates-default" property
Last modified: 2018-05-02 14:23:47 UTC
GtkComboBox reacts to the Enter key, just like a GtkEntry. This means that if a dialog has a GtkComboBox as its first focus widget, then the dialog's default action cannot any longer be activated by pressing the Enter key. GtkEntry has an "activates-default" property that allows an application developer to change the behaviour so that the entry calls gtk_window_activate_default() on the window containing the entry in the default handler for the "activate" signal. Such a property should also exist on a GtkComboBox. See bug #380848 for an example of this problem.
Created attachment 105506 [details] [review] halfway done This patch adds the "activates-default" property as well as getters and setters. What's missing is the actual implementation. I guess the best way to implement this would be to add an "activate" signal to the GtkComboBox and register it as the activate signal. Then do the dispatching to the internal GtkToggleButton and the optional dialog activation from there.
Sounds good to me. Do you have a more complete patch ?
*** Bug 309287 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/272.