From 8c7bdfc0047004245000b060f8187af3f2898feb Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Sat, 19 Mar 2016 13:36:37 +0100 Subject: [PATCH] Allow legal non-x11 keycodes --- sway/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands.c b/sway/commands.c index 38bfd68a..e03eef24 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -317,7 +317,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) { } // parse keycode int keycode = (int)strtol(split->items[i], NULL, 10); - if (!xkb_keycode_is_legal_x11(keycode)) { + if (!xkb_keycode_is_legal_ext(keycode)) { error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]); free_sway_binding(binding); list_free(split);