mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
config: wip: add support for modifiers in mouse bindings
Mouse bindings can now include modifiers. They are specified in pretty much the same way as in keyboard bindings: Control+BTN_LEFT
This commit is contained in:
parent
823a7c0318
commit
544c1b1976
6 changed files with 207 additions and 31 deletions
11
config.h
11
config.h
|
|
@ -17,16 +17,21 @@ struct config_font {
|
|||
|
||||
struct config_key_binding_normal {
|
||||
enum bind_action_normal action;
|
||||
char *key;
|
||||
char *combos;
|
||||
struct {
|
||||
char *cmd;
|
||||
char **argv;
|
||||
} pipe;
|
||||
};
|
||||
|
||||
struct config_mouse_binding {
|
||||
enum bind_action_normal action;
|
||||
char *combos;
|
||||
};
|
||||
|
||||
struct config_key_binding_search {
|
||||
enum bind_action_search action;
|
||||
char *key;
|
||||
char *combos;
|
||||
};
|
||||
|
||||
struct config {
|
||||
|
|
@ -91,7 +96,7 @@ struct config {
|
|||
struct {
|
||||
/* Bindings for "normal" mode */
|
||||
tll(struct config_key_binding_normal) key;
|
||||
tll(struct mouse_binding) mouse;
|
||||
tll(struct config_mouse_binding) mouse;
|
||||
|
||||
/*
|
||||
* Special modes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue