From: Moritz Augsburger Date: Sat, 3 Nov 2012 10:31:29 +0000 (+0000) Subject: Allow XKB_KEY_XF86ScreenSaver as synonm for enter X-Git-Tag: 2.5~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e84a1203a65fed6d090d492aec6505fc6f250ae9;p=i3%2Fi3lock Allow XKB_KEY_XF86ScreenSaver as synonm for enter This keysym is generated on convertible tablets by pressing a hardware lock/unlock button. --- diff --git a/i3lock.c b/i3lock.c index fffb3da..5d1da01 100644 --- a/i3lock.c +++ b/i3lock.c @@ -253,6 +253,7 @@ static void handle_key_press(xcb_key_press_event_t *event) { switch (ksym) { case XKB_KEY_Return: case XKB_KEY_KP_Enter: + case XKB_KEY_XF86ScreenSaver: password[input_position] = '\0'; input_done(); case XKB_KEY_Escape: