add ctrl alt del
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user