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
@@ -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


Reply via email to