Improve naming convention

This commit is contained in:
project-repo 2023-01-06 19:50:36 +01:00
commit 8660346f76
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ definekey top <key> mode root
Enable or disable send_events for specified input device -
Disabling send_events disables the input device.
*keybindings [enable|disable]*
*keybindings [enabled|disabled]*
Enable or disable keybinding interpretation for a specific keyboard.
*left_handed enabled|disabled*

View file

@ -341,9 +341,9 @@ parse_input_config(char **saveptr, char **errstr) {
goto error;
}
} else if(strcmp(setting, "keybindings") == 0) {
if(strcmp(value, "enable") == 0) {
if(strcmp(value, "enabled") == 0) {
cfg->enable_keybindings = true;
} else if(strcmp(value, "disable") == 0) {
} else if(strcmp(value, "disabled") == 0) {
cfg->enable_keybindings = false;
} else {
*errstr = log_error(