move reboot call to handlerscc

This commit is contained in:
Eggert Jung
2025-05-13 17:36:34 +02:00
parent a415260776
commit f1e5f17d1f
2 changed files with 4 additions and 4 deletions

View File

@@ -72,9 +72,12 @@ enum PAGE_FAULT_ERROR {
extern TextStream kout;
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 ;
koutlock.unlock();