Allow XKB_KEY_XF86ScreenSaver as synonm for enter
This keysym is generated on convertible tablets by pressing a hardware lock/unlock button.
This commit is contained in:
parent
fba88476dd
commit
e84a1203a6
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…
Reference in New Issue