mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 11:21:25 +00:00
[USETUP] Fix handling of the ESCAPE key.
Its AsciiChar is not zero in Console-compatible code.
This commit is contained in:
parent
16532170de
commit
8b94515bd3
1 changed files with 12 additions and 15 deletions
|
@ -948,8 +948,7 @@ RepairIntroPage(PINPUT_RECORD Ir)
|
||||||
{
|
{
|
||||||
return RECOVERY_PAGE;
|
return RECOVERY_PAGE;
|
||||||
}
|
}
|
||||||
else if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) /* ESC */
|
||||||
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE)) /* ESC */
|
|
||||||
{
|
{
|
||||||
return WELCOME_PAGE;
|
return WELCOME_PAGE;
|
||||||
}
|
}
|
||||||
|
@ -1051,16 +1050,16 @@ UpgradeRepairPage(PINPUT_RECORD Ir)
|
||||||
RedrawGenericList(&ListUi);
|
RedrawGenericList(&ListUi);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VK_ESCAPE: /* ESC */
|
}
|
||||||
{
|
}
|
||||||
RestoreGenericListUiState(&ListUi);
|
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) /* ESC */
|
||||||
// return nextPage; // prevPage;
|
{
|
||||||
|
RestoreGenericListUiState(&ListUi);
|
||||||
|
// return nextPage; // prevPage;
|
||||||
|
|
||||||
// return INSTALL_INTRO_PAGE;
|
// return INSTALL_INTRO_PAGE;
|
||||||
return DEVICE_SETTINGS_PAGE;
|
return DEVICE_SETTINGS_PAGE;
|
||||||
// return SCSI_CONTROLLER_PAGE;
|
// return SCSI_CONTROLLER_PAGE;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1411,8 +1410,7 @@ HandleGenericList(PGENERIC_LIST_UI ListUi,
|
||||||
else
|
else
|
||||||
RedrawGenericList(ListUi);
|
RedrawGenericList(ListUi);
|
||||||
}
|
}
|
||||||
else if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) /* ESC */
|
||||||
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE)) /* ESC */
|
|
||||||
{
|
{
|
||||||
RestoreGenericListUiState(ListUi);
|
RestoreGenericListUiState(ListUi);
|
||||||
return nextPage; // Use some "prevPage;" instead?
|
return nextPage; // Use some "prevPage;" instead?
|
||||||
|
@ -3279,8 +3277,7 @@ SelectFileSystemPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if ((Ir->Event.KeyEvent.uChar.AsciiChar == 0x00) &&
|
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) /* ESC */
|
||||||
(Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE)) /* ESC */
|
|
||||||
{
|
{
|
||||||
/* Reset the formatter machine state */
|
/* Reset the formatter machine state */
|
||||||
TempPartition = NULL;
|
TempPartition = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue