mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Part of bgo#613728 - [GtkTreeView] Focus the list, not the headers, when Tab-focusing
The idea is that it is way more common to want to manipulate the actual list, rather than the headers. Once you Tab into the treeview (and the list part gets the focus), you can use Shift-Tab to focus the headers. This means that some hysteresis is added to the focus chain, but it makes the treeview a lot more convenient to focus with the keyboard. Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
parent
5cbb309841
commit
85e47b5c4e
@ -8031,7 +8031,6 @@ gtk_tree_view_focus (GtkWidget *widget,
|
||||
/* Case 2. We don't have focus at all. */
|
||||
if (!gtk_widget_has_focus (widget))
|
||||
{
|
||||
if (!gtk_tree_view_header_focus (tree_view, direction, FALSE))
|
||||
gtk_widget_grab_focus (widget);
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user