[USETUP] Partial revert of 8b94515b for the ESCAPE key in the UpgradeRepairPage(...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 4 Jan 2021 15:11:40 +0000 (16:11 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 4 Jan 2021 15:13:28 +0000 (16:13 +0100)
The AsciiChar of the ESCAPE key should be 0x1B instead of zero; however
this is not the case due to the hacked keyboard layout currently being
used. This will be fixed later ...

base/setup/usetup/usetup.c

index ea09d5d..898b579 100644 (file)
@@ -1050,8 +1050,26 @@ UpgradeRepairPage(PINPUT_RECORD Ir)
                     RedrawGenericList(&ListUi);
                 break;
             }
+#if 1
+/* TODO: Temporarily kept until correct keyboard layout is in place.
+ * (Actual AsciiChar of ESCAPE should be 0x1B instead of 0.)
+ * Addendum to commit 8b94515b.
+ */
+            case VK_ESCAPE: /* ESC */
+            {
+                RestoreGenericListUiState(&ListUi);
+                // return nextPage;    // prevPage;
+
+                // return INSTALL_INTRO_PAGE;
+                return DEVICE_SETTINGS_PAGE;
+                // return SCSI_CONTROLLER_PAGE;
+            }
+
+#endif
             }
         }
+#if 0
+/* TODO: Restore this once correct keyboard layout is in place. */
         else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE) /* ESC */
         {
             RestoreGenericListUiState(&ListUi);
@@ -1061,6 +1079,7 @@ UpgradeRepairPage(PINPUT_RECORD Ir)
             return DEVICE_SETTINGS_PAGE;
             // return SCSI_CONTROLLER_PAGE;
         }
+#endif
         else
         {
             // switch (toupper(Ir->Event.KeyEvent.uChar.AsciiChar))