mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04:00
config: mouse-bindings: verify button isn't already mapped
A button may only be mapped to a single action. Detect when the user tried to map the same button to multiple actions and error out. To clear a binding (for example, to free up a button from the default bindings), one can set the action it is bound to to `NONE` (e.g. `primary-paste=NONE`).
This commit is contained in:
parent
60170f4738
commit
c58f9a9ef9
4 changed files with 40 additions and 5 deletions
|
|
@ -42,6 +42,7 @@ struct monitor {
|
|||
};
|
||||
|
||||
enum binding_action {
|
||||
BIND_ACTION_NONE,
|
||||
BIND_ACTION_SCROLLBACK_UP,
|
||||
BIND_ACTION_SCROLLBACK_DOWN,
|
||||
BIND_ACTION_CLIPBOARD_COPY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue