zack fertig

This commit is contained in:
Eggert Jung
2025-05-13 17:44:58 +02:00
parent f1e5f17d1f
commit 901eb0bbf5
2 changed files with 6 additions and 8 deletions

View File

@@ -74,14 +74,12 @@ extern Ticketlock koutlock;
void handle_keyboard() {
Key key = Key();
if (PS2Controller::fetch(key)) {
if (key.ctrl() && key.alt() && key.scancode == Key::KEY_DEL)
System::reboot();
koutlock.lock();
kout << key.ascii() << flush ;
kout << key.ascii() << endl << flush ;
koutlock.unlock();
}
else if (key.ctrl() && key.alt() && key.scancode == Key::KEY_DEL)
System::reboot();
LAPIC::endOfInterrupt();
}