mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05: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)
|
||||
continue;
|
||||
|
||||
if (strcmp(value, "NONE") == 0) {
|
||||
if (strcasecmp(value, "none") == 0) {
|
||||
free(conf->bindings.key[action]);
|
||||
conf->bindings.key[action] = NULL;
|
||||
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
|
||||
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
6
footrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue