move reboot call to handlerscc

main
Eggert Jung 6 months ago
parent a415260776
commit f1e5f17d1f

@ -122,9 +122,6 @@ bool fetch(Key &pressed) {
pressed = key_decoder.decode(out_buffer); 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()) if (pressed.alt() || pressed.ctrl() || !pressed.valid())
return false; return false;
else else

@ -72,9 +72,12 @@ enum PAGE_FAULT_ERROR {
extern TextStream kout; extern TextStream kout;
extern Ticketlock koutlock; extern Ticketlock koutlock;
void handle_keyboard() { void handle_keyboard() {
Key key = Key(); Key key = Key();
if (PS2Controller::fetch(key)) { if (PS2Controller::fetch(key)) {
if (key.ctrl() && key.alt() && key.scancode == Key::KEY_DEL)
System::reboot();
koutlock.lock(); koutlock.lock();
kout << key.ascii() << flush ; kout << key.ascii() << flush ;
koutlock.unlock(); koutlock.unlock();

Loading…
Cancel
Save