diff --git a/kernel.c b/kernel.c index 4030b9a..ffb6d3f 100644 --- a/kernel.c +++ b/kernel.c @@ -96,8 +96,8 @@ void kmain(BootInfo *Boot) // Reset for next command len = 0; SAFE_PRINT(Boot, L"-> "); - } else if (Key.UnicodeChar == L'\b' || Key.UnicodeChar == 0x7F) { - // Backspace + } else if (Key.ScanCode == 0x08 || Key.UnicodeChar == L'\b' || Key.UnicodeChar == 0x7F) { + // Backspace (ScanCode 0x08 is backspace in UEFI) if (len > 0) { len--; SAFE_PRINT(Boot, L"\b \b");