Exit on CTRL-C - thinglaunch - A simple command and password promtper for X11. | |
git clone git://bitreich.org/thinglaunch | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 50920755d6cdfc642d76cecac2dbee9730af77c7 | |
parent 88e9e929a0157489d4a6ef7b0096414b31e7c9d8 | |
Author: Christoph Polcin <[email protected]> | |
Date: Mon, 12 Mar 2018 11:49:45 +0100 | |
Exit on CTRL-C | |
Signed-off-by: Christoph Polcin <[email protected]> | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M thinglaunch.c | 3 +++ | |
1 file changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/thinglaunch.c b/thinglaunch.c | |
@@ -415,6 +415,9 @@ keypress(XKeyEvent *keyevent) | |
case XK_KP_Enter: | |
execcmd(); | |
break; | |
+ case XK_c: | |
+ if (keyevent->state & ControlMask) | |
+ exit(0); | |
default: | |
if (key_symbol > 255) | |
break; |