diff options
author | Corey Berla <corey@berla.me> | 2023-04-07 16:01:52 -0700 |
---|---|---|
committer | Corey Berla <corey@berla.me> | 2023-04-24 14:33:20 -0700 |
commit | 1ff9d076bf044ddefd3a7a12bd49d6131ce79859 (patch) | |
tree | 1a60d3f33bbc981e412b089ad3cae371bad017d7 | |
parent | 31cd75042a17b4c7b79706b214053e798a0af179 (diff) | |
download | nautilus-1ff9d076bf044ddefd3a7a12bd49d6131ce79859.tar.gz |
view: Use tab-behavior API
When we are in the view, we don't want to tab through all of the
items, we use arrow keys for that. Tabbing through the list, allows
easier accessibility to reach other controls. Use GTK_LIST_TAB_ITEM
so that we can tab between items in a column view. For examples, the
quote text in a search, or the star (in a future commit).
-rw-r--r-- | src/nautilus-grid-view.c | 1 | ||||
-rw-r--r-- | src/nautilus-list-view.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-grid-view.c b/src/nautilus-grid-view.c index 269e57072..75981ed10 100644 --- a/src/nautilus-grid-view.c +++ b/src/nautilus-grid-view.c @@ -526,6 +526,7 @@ create_view_ui (NautilusGridView *self) gtk_grid_view_set_single_click_activate (GTK_GRID_VIEW (widget), FALSE); gtk_grid_view_set_max_columns (GTK_GRID_VIEW (widget), 20); gtk_grid_view_set_enable_rubberband (GTK_GRID_VIEW (widget), TRUE); + gtk_grid_view_set_tab_behavior (GTK_GRID_VIEW (widget), GTK_LIST_TAB_ITEM); /* While we don't want to use GTK's click activation, we'll let it handle * the key activation part (with Enter). diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c index a9adff550..7dfa8a817 100644 --- a/src/nautilus-list-view.c +++ b/src/nautilus-list-view.c @@ -435,6 +435,7 @@ create_view_ui (NautilusListView *self) * hover). Setting it to FALSE gives us the expected behavior. */ gtk_column_view_set_single_click_activate (GTK_COLUMN_VIEW (widget), FALSE); gtk_column_view_set_enable_rubberband (GTK_COLUMN_VIEW (widget), TRUE); + gtk_column_view_set_tab_behavior (GTK_COLUMN_VIEW (widget), GTK_LIST_TAB_ITEM); /* While we don't want to use GTK's click activation, we'll let it handle * the key activation part (with Enter). |