Browse Source

Allow XKB_KEY_XF86ScreenSaver as synonm for enter

This keysym is generated on convertible tablets by pressing a hardware
lock/unlock button.
master
Moritz Augsburger 12 years ago
committed by Michael Stapelberg
parent
commit
e84a1203a6
  1. 1
      i3lock.c

1
i3lock.c

@ -253,6 +253,7 @@ static void handle_key_press(xcb_key_press_event_t *event) {
switch (ksym) { switch (ksym) {
case XKB_KEY_Return: case XKB_KEY_Return:
case XKB_KEY_KP_Enter: case XKB_KEY_KP_Enter:
case XKB_KEY_XF86ScreenSaver:
password[input_position] = '\0'; password[input_position] = '\0';
input_done(); input_done();
case XKB_KEY_Escape: case XKB_KEY_Escape:

Loading…
Cancel
Save