XTLDR Rewrite #7
@ -1100,6 +1100,28 @@ BlDisplayBootMenu()
|
||||
BlpDrawBootMenuEntry(&Handle, MenuEntries[HighligtedEntryId].EntryName, HighligtedEntryId, TRUE);
|
||||
}
|
||||
}
|
||||
else if(Key.ScanCode == 0x09)
|
||||
{
|
||||
/* PageUp key pressed, go to top entry */
|
||||
if(HighligtedEntryId != 0)
|
||||
{
|
||||
/* Highlight first entry */
|
||||
BlpDrawBootMenuEntry(&Handle, MenuEntries[HighligtedEntryId].EntryName, HighligtedEntryId, FALSE);
|
||||
BlpDrawBootMenuEntry(&Handle, MenuEntries[0].EntryName, 0, TRUE);
|
||||
HighligtedEntryId = 0;
|
||||
}
|
||||
}
|
||||
else if(Key.ScanCode == 0x0A)
|
||||
{
|
||||
/* PageDown key pressed, go to bottom entry */
|
||||
if(HighligtedEntryId != NumberOfEntries - 1)
|
||||
{
|
||||
/* Highlight last entry */
|
||||
BlpDrawBootMenuEntry(&Handle, MenuEntries[HighligtedEntryId].EntryName, HighligtedEntryId, FALSE);
|
||||
BlpDrawBootMenuEntry(&Handle, MenuEntries[NumberOfEntries - 1].EntryName, NumberOfEntries - 1, TRUE);
|
||||
HighligtedEntryId = NumberOfEntries - 1;
|
||||
}
|
||||
}
|
||||
else if(Key.ScanCode == 0x0B)
|
||||
{
|
||||
/* F1 key pressed, show help */
|
||||
@ -1111,6 +1133,7 @@ BlDisplayBootMenu()
|
||||
else if(Key.UnicodeChar == 0x65)
|
||||
{
|
||||
/* 'e' key pressed, edit the highlighted entry */
|
||||
BlDisplayErrorDialog(L"XTLDR", L"Editing boot menu entries is not implemented yet!");
|
||||
|
||||
/* Break from boot menu event loop to redraw whole boot menu */
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user