conf: bindings: case insensitive matching against 'none'

This commit is contained in:
Daniel Eklöf 2020-03-18 14:52:04 +01:00
parent 6d30e7d15d
commit c87cec8c1e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 8 additions and 8 deletions

View file

@ -507,7 +507,7 @@ parse_section_key_bindings(
if (strcmp(key, binding_action_map[action]) != 0)
continue;
if (strcmp(value, "NONE") == 0) {
if (strcasecmp(value, "none") == 0) {
free(conf->bindings.key[action]);
conf->bindings.key[action] = NULL;
return true;

View file

@ -165,8 +165,8 @@ Note that *Alt* is usually called *Mod1*.
A key combination can only be mapped to *one* action. Lets say you
want to bind *Control+Shift+R* to *fullscreen*. Since this is the
default shortcut for *search-start*, you first need to unmap the
default binding. This can be done by setting _action=NONE_;
e.g. *search-start=NONE*.
default binding. This can be done by setting _action=none_;
e.g. *search-start=none*.
*scrollback-up*
Scrolls up/back in history. Default: _Shift+Page\_Up_.
@ -223,8 +223,8 @@ find the event names using *libinput debug-events*.
A button can only be mapped to *one* action. Lets say you want to bind
*BTN\_MIDDLE* to *fullscreen*. Since *BTN\_MIDDLE* is the default
binding for *primary-paste*, you first need to unmap the default
binding. This can be done by setting _action=NONE_;
e.g. *primary-paste=NONE*.
binding. This can be done by setting _action=none_;
e.g. *primary-paste=none*.
All actions listed under *key-bindings* can be user here as well.

6
footrc
View file

@ -53,9 +53,9 @@
# font-decrease=Control+minus Control+KP_Subtract
# font-reset=Control+0 Control+KP_0
# spawn-terminal=Control+Shift+N
# # minimize=<not bound>
# # maximize=<not bound>
# # fullscreen=<not bound>
# minimize=none
# maximize=none
# fullscreen=none
[mouse-bindings]
# primary-paste=BTN_MIDDLE