mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
conf: bindings: case insensitive matching against 'none'
This commit is contained in:
parent
6d30e7d15d
commit
c87cec8c1e
3 changed files with 8 additions and 8 deletions
2
config.c
2
config.c
|
|
@ -507,7 +507,7 @@ parse_section_key_bindings(
|
||||||
if (strcmp(key, binding_action_map[action]) != 0)
|
if (strcmp(key, binding_action_map[action]) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcmp(value, "NONE") == 0) {
|
if (strcasecmp(value, "none") == 0) {
|
||||||
free(conf->bindings.key[action]);
|
free(conf->bindings.key[action]);
|
||||||
conf->bindings.key[action] = NULL;
|
conf->bindings.key[action] = NULL;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -165,8 +165,8 @@ Note that *Alt* is usually called *Mod1*.
|
||||||
A key combination can only be mapped to *one* action. Lets say you
|
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
|
want to bind *Control+Shift+R* to *fullscreen*. Since this is the
|
||||||
default shortcut for *search-start*, you first need to unmap the
|
default shortcut for *search-start*, you first need to unmap the
|
||||||
default binding. This can be done by setting _action=NONE_;
|
default binding. This can be done by setting _action=none_;
|
||||||
e.g. *search-start=NONE*.
|
e.g. *search-start=none*.
|
||||||
|
|
||||||
*scrollback-up*
|
*scrollback-up*
|
||||||
Scrolls up/back in history. Default: _Shift+Page\_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
|
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
|
*BTN\_MIDDLE* to *fullscreen*. Since *BTN\_MIDDLE* is the default
|
||||||
binding for *primary-paste*, you first need to unmap the default
|
binding for *primary-paste*, you first need to unmap the default
|
||||||
binding. This can be done by setting _action=NONE_;
|
binding. This can be done by setting _action=none_;
|
||||||
e.g. *primary-paste=NONE*.
|
e.g. *primary-paste=none*.
|
||||||
|
|
||||||
All actions listed under *key-bindings* can be user here as well.
|
All actions listed under *key-bindings* can be user here as well.
|
||||||
|
|
||||||
|
|
|
||||||
6
footrc
6
footrc
|
|
@ -53,9 +53,9 @@
|
||||||
# font-decrease=Control+minus Control+KP_Subtract
|
# font-decrease=Control+minus Control+KP_Subtract
|
||||||
# font-reset=Control+0 Control+KP_0
|
# font-reset=Control+0 Control+KP_0
|
||||||
# spawn-terminal=Control+Shift+N
|
# spawn-terminal=Control+Shift+N
|
||||||
# # minimize=<not bound>
|
# minimize=none
|
||||||
# # maximize=<not bound>
|
# maximize=none
|
||||||
# # fullscreen=<not bound>
|
# fullscreen=none
|
||||||
|
|
||||||
[mouse-bindings]
|
[mouse-bindings]
|
||||||
# primary-paste=BTN_MIDDLE
|
# primary-paste=BTN_MIDDLE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue