Improve keynav some more
The previous commit made it so that arrow up/down can leave the list box when the last child is reached. But it did not work for Page up/down, due to the way the code was written. With this commit, all up/down key bindings can leave the widget.
This commit is contained in:
parent
98b0a39efe
commit
ebcc7ed3bd
1 changed files with 1 additions and 1 deletions
|
@ -1968,7 +1968,7 @@ egg_list_box_real_move_cursor (EggListBox *list_box,
|
|||
return;
|
||||
}
|
||||
|
||||
if (child == NULL)
|
||||
if (child == NULL || child == priv->cursor_child)
|
||||
{
|
||||
GtkDirectionType direction = count < 0 ? GTK_DIR_UP : GTK_DIR_DOWN;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue