mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USETUP] InstallDirectoryPage(): Pressing ESC erases the whole path line (#7185)
This commit is contained in:
parent
4956e249db
commit
2136409fda
1 changed files with 8 additions and 0 deletions
|
@ -3043,6 +3043,14 @@ InstallDirectoryPage(PINPUT_RECORD Ir)
|
|||
CONSOLE_SetCursorXY(8 + Pos, 11);
|
||||
}
|
||||
}
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) /* ESC */
|
||||
{
|
||||
/* Erase the whole line */
|
||||
*InstallDir = UNICODE_NULL;
|
||||
Pos = Length = 0;
|
||||
CONSOLE_SetInputTextXY(8, 11, 51, InstallDir);
|
||||
CONSOLE_SetCursorXY(8 + Pos, 11);
|
||||
}
|
||||
else if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
|
||||
{
|
||||
CONSOLE_SetCursorType(TRUE, FALSE);
|
||||
|
|
Loading…
Reference in a new issue