Initially pressing Up in completion should select the last match
This commit is contained in:
parent
ca9420bdfc
commit
8c62689981
1 changed files with 6 additions and 1 deletions
|
@ -853,7 +853,12 @@ midori_location_action_key_press_event_cb (GtkEntry* entry,
|
|||
if (event->keyval == GDK_Down || event->keyval == GDK_KP_Down)
|
||||
selected = MIN (selected + 1, matches -1);
|
||||
else if (event->keyval == GDK_Up || event->keyval == GDK_KP_Up)
|
||||
{
|
||||
if (selected == -1)
|
||||
selected = matches - 1;
|
||||
else
|
||||
selected = MAX (selected - 1, 0);
|
||||
}
|
||||
else if (event->keyval == GDK_Page_Down)
|
||||
selected = MIN (selected + 14, matches -1);
|
||||
else if (event->keyval == GDK_Page_Up)
|
||||
|
|
Loading…
Reference in a new issue