mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Allow legal non-x11 keycodes
This commit is contained in:
parent
91192e3c65
commit
8c7bdfc004
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
// parse keycode
|
// parse keycode
|
||||||
int keycode = (int)strtol(split->items[i], NULL, 10);
|
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]);
|
error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]);
|
||||||
free_sway_binding(binding);
|
free_sway_binding(binding);
|
||||||
list_free(split);
|
list_free(split);
|
||||||
|
|
Loading…
Reference in a new issue