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:
parent
605f5bb64b
commit
f8aa0f43c4
2 changed files with 20 additions and 0 deletions
|
@ -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,
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue