Add Enter on C-m (#103)

pull/105/head
Nicolò Balzarotti 2016-11-09 22:23:01 +01:00 committed by Michael Stapelberg
parent d2130092cf
commit 7504e16527
1 changed files with 2 additions and 1 deletions

View File

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