]> git.sur5r.net Git - i3/i3lock/commitdiff
Allow XKB_KEY_XF86ScreenSaver as synonm for enter
authorMoritz Augsburger <moritz@augsburger.name>
Sat, 3 Nov 2012 10:31:29 +0000 (10:31 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 4 Nov 2012 18:01:48 +0000 (19:01 +0100)
This keysym is generated on convertible tablets by pressing a hardware
lock/unlock button.

i3lock.c

index fffb3da9b25f3f20127f2ad872a627a732e138b2..5d1da0162d3d0b290cffc03f50816fdfcffe9f11 100644 (file)
--- 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: