add ctrl alt del

This commit is contained in:
Eggert Jung
2025-05-10 16:53:17 +02:00
parent e9500c1b40
commit 383561a4f6
3 changed files with 23 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
#include "ps2controller.h"
#include "../arch/system.h"
#include "../arch/core_interrupt.h"
#include "../arch/ioport.h"
#include "../compiler/fix.h"
@@ -120,6 +121,9 @@ bool fetch(Key &pressed) {
return false;
pressed = key_decoder.decode(out_buffer);
if (pressed.ctrl() && pressed.alt() && pressed.scancode == Key::KEY_DEL)
System::reboot();
if (pressed.alt() || pressed.ctrl() || !pressed.valid())
return false;