[hackers] [slock][PATCH] Blank input on C-u

From: Philip K <philipk_AT_posteo.net>
Date: Thu, 1 Apr 2021 13:03:10 +0200

This is a standard Unix shortcut (http://unix-kb.cat-v.org/) that is
implemented in a lot of contexts (shells, password input, text
editors, ...).
---
 slock.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/slock.c b/slock.c
index 5ae738c..0ba1ebd 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -171,6 +171,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
 				explicit_bzero(&passwd, sizeof(passwd));
 				len = 0;
 				break;
+			case ControlMask|XK_u:
 			case XK_Escape:
 				explicit_bzero(&passwd, sizeof(passwd));
 				len = 0;
-- 
2.30.2
Received on Thu Apr 01 2021 - 13:03:10 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 01 2021 - 13:12:28 CEST