event-editor: Focus the whole title entry on start
This avoids the text cursor being positioned at the start of the entry. Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1452 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/631>
This commit is contained in:
@@ -75,7 +75,7 @@ gcal_reminders_section_set_event (GcalEventEditorSection *section,
|
||||
gtk_editable_set_text (GTK_EDITABLE (self->summary_entry), gcal_event_get_summary (event));
|
||||
gtk_editable_set_text (GTK_EDITABLE (self->location_entry), gcal_event_get_location (event));
|
||||
|
||||
adw_entry_row_grab_focus_without_selecting (self->summary_entry);
|
||||
gtk_widget_grab_focus (GTK_WIDGET (self->summary_entry));
|
||||
|
||||
gtk_widget_remove_css_class (GTK_WIDGET (self->summary_entry), "error");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user