2008-08-17 Carles Pina i Estany <carles@pina.cat>

* menu/normal.c (run_menu): Add Home and End keys in grub-menu.
This commit is contained in:
fzielcke 2008-08-17 10:30:25 +00:00
parent 605f5bb64b
commit f8aa0f43c4
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2008-08-17 Carles Pina i Estany <carles@pina.cat>
* menu/normal.c (run_menu): Add Home and End keys in grub-menu.
2008-08-17 Felix Zielcke <fzielcke@z-51.de> 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
* gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc, * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,

View file

@ -405,6 +405,22 @@ run_menu (grub_menu_t menu, int nested)
switch (c) switch (c)
{ {
case GRUB_TERM_HOME:
first = 0;
offset = 0;
print_entries (menu, first, offset);
break;
case GRUB_TERM_END:
offset = menu->size - 1;
if (offset > GRUB_TERM_NUM_ENTRIES - 1)
{
first = offset - (GRUB_TERM_NUM_ENTRIES - 1);
offset = GRUB_TERM_NUM_ENTRIES - 1;
}
print_entries (menu, first, offset);
break;
case 16: case 16:
case '^': case '^':
if (offset > 0) if (offset > 0)