]> git.sur5r.net Git - i3/i3lock/commitdiff
Add Enter on C-m (#103)
authorNicolò Balzarotti <anothersms@gmail.com>
Wed, 9 Nov 2016 21:23:01 +0000 (22:23 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Wed, 9 Nov 2016 21:23:01 +0000 (13:23 -0800)
i3lock.c

index 06531e61e0485489f9699fffab213b603b71dc31..761ed3250f4a133df008fce62df7ce73a919c7ac 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -386,10 +386,11 @@ static void handle_key_press(xcb_key_press_event_t *event) {
 
     switch (ksym) {
         case XKB_KEY_j:
+        case XKB_KEY_m:
         case XKB_KEY_Return:
         case XKB_KEY_KP_Enter:
         case XKB_KEY_XF86ScreenSaver:
-            if (ksym == XKB_KEY_j && !ctrl)
+            if ((ksym == XKB_KEY_j || ksym == XKB_KEY_m) && !ctrl)
                 break;
 
             if (pam_state == STATE_PAM_WRONG) {