From ebcc7ed3bd2782e29e56b5452a5d4080d4d87cc7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 22 Jan 2013 22:14:49 -0500 Subject: [PATCH] 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. --- egg-list-box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egg-list-box.c b/egg-list-box.c index 8480c4d..1532ab0 100644 --- a/egg-list-box.c +++ b/egg-list-box.c @@ -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;