mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
test: config: verify collisions with the mouse override modifiers are detected
This commit is contained in:
parent
40249ab3a2
commit
f077a2e77a
1 changed files with 11 additions and 1 deletions
|
|
@ -380,7 +380,8 @@ test_key_binding(struct context *ctx, bool (*parse_fun)(struct context *ctx),
|
|||
enum collision_test_mode {
|
||||
FAIL_DIFFERENT_ACTION,
|
||||
FAIL_DIFFERENT_ARGV,
|
||||
SUCCED_SAME_ACTION_AND_ARGV
|
||||
FAIL_MOUSE_OVERRIDE,
|
||||
SUCCED_SAME_ACTION_AND_ARGV,
|
||||
};
|
||||
|
||||
static void
|
||||
|
|
@ -429,6 +430,10 @@ _test_binding_collisions(struct context *ctx,
|
|||
case FAIL_DIFFERENT_ACTION:
|
||||
break;
|
||||
|
||||
case FAIL_MOUSE_OVERRIDE:
|
||||
ctx->conf->mouse.selection_override_modifiers.ctrl = true;
|
||||
break;
|
||||
|
||||
case FAIL_DIFFERENT_ARGV:
|
||||
case SUCCED_SAME_ACTION_AND_ARGV:
|
||||
bindings.arr[0].pipe.master_copy = true;
|
||||
|
|
@ -484,6 +489,11 @@ test_binding_collisions(struct context *ctx,
|
|||
_test_binding_collisions(ctx, max_action, map, type, FAIL_DIFFERENT_ACTION);
|
||||
_test_binding_collisions(ctx, max_action, map, type, FAIL_DIFFERENT_ARGV);
|
||||
_test_binding_collisions(ctx, max_action, map, type, SUCCED_SAME_ACTION_AND_ARGV);
|
||||
|
||||
if (type == MOUSE_BINDING) {
|
||||
_test_binding_collisions(
|
||||
ctx, max_action, map, type, FAIL_MOUSE_OVERRIDE);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue