From 82258b9f89a68f40e8504f1bc7c47af5ee19316e Mon Sep 17 00:00:00 2001 From: Lephe Date: Sat, 1 Apr 2023 23:24:55 +0200 Subject: [PATCH] keysc: bind SHIFT+7+3+AC/ON to abort() for un-freeze attempts --- src/keysc/keysc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/keysc/keysc.c b/src/keysc/keysc.c index 47423c7..e68f193 100644 --- a/src/keysc/keysc.c +++ b/src/keysc/keysc.c @@ -15,6 +15,7 @@ #include #include +#include /* Keyboard scan frequency in Hertz. Start with 128 Hz, this frequency *must be high* for the keyboard to work! Reading at low frequencies produces a lot @@ -62,6 +63,14 @@ static int keysc_tick(void) keydev_process_state(&keysc_dev, scan); keydev_tick(&keysc_dev, keysc_scan_us); + + /* Freeze abort key combo: SHIFT+7+3+AC/ON */ + if(keydown(KEY_SHIFT) && keydown(KEY_7) && keydown(KEY_3) && + keydown(KEY_ACON)) + { + abort(); + } + return TIMER_CONTINUE; }