views/month-view: Focus adjacent cell when tabbing forward from the last event widget

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/564>
This commit is contained in:
Hari Rana
2026-03-03 21:11:16 -03:00
committed by Georges Basile Stavracas Neto
parent e607a6bd2e
commit 2638766d10
+15 -3
View File
@@ -1596,10 +1596,22 @@ gcal_month_view_focus (GtkWidget *widget,
return gcal_month_view_row_focus_adjacent_cell (GCAL_MONTH_VIEW_ROW (row), focused);
}
else if (focused && GCAL_IS_MONTH_CELL (focused))
else if (focused)
{
gcal_view_clear_marks (GCAL_VIEW (self));
return FALSE;
if (GCAL_IS_MONTH_CELL (focused))
{
gcal_view_clear_marks (GCAL_VIEW (self));
return FALSE;
}
if (direction == GTK_DIR_TAB_FORWARD && GCAL_IS_EVENT_WIDGET (focused))
{
if (GTK_WIDGET_CLASS (gcal_month_view_parent_class)->focus (widget, direction))
return TRUE;
row = gtk_widget_get_ancestor (focused, GCAL_TYPE_MONTH_VIEW_ROW);
return gcal_month_view_row_focus_adjacent_cell (GCAL_MONTH_VIEW_ROW (row), focused);
}
}
return GTK_WIDGET_CLASS (gcal_month_view_parent_class)->focus (widget, direction);