diff options
author | Nicolò Balzarotti <anothersms@gmail.com> | 2016-11-09 22:23:01 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2016-11-09 13:23:01 -0800 |
commit | 7504e16527d4307343ac13f7543394b7dcfc5977 (patch) | |
tree | fc73d97335ec4816d453fc890e41c465dbd6ed92 | |
parent | d2130092cf588c02d7a0e74c0de85dc261b6823b (diff) |
Add Enter on C-m (#103)
-rw-r--r-- | i3lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |