mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
config: don't allow Shift in mouse bindings
Shift is a special modifier that is used to enable selection when the client application is grabbing the mouse.
This commit is contained in:
parent
28410f1b99
commit
517d13fbce
2 changed files with 9 additions and 0 deletions
5
config.c
5
config.c
|
|
@ -1026,6 +1026,11 @@ parse_mouse_combos(struct config *conf, const char *combos, key_combo_list_t *ke
|
|||
*key = '\0';
|
||||
if (!parse_modifiers(conf, combo, key - combo, &modifiers, path, lineno))
|
||||
goto err;
|
||||
if (modifiers.shift) {
|
||||
LOG_AND_NOTIFY_ERR("%s:%d: Shift cannot be used in mosue bindings",
|
||||
path, lineno);
|
||||
goto err;
|
||||
}
|
||||
key++; /* Skip past the '+' */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue