Skip to content

Commit

Permalink
bindings/test: Fix for new compose behaviour
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Glidic <[email protected]>
  • Loading branch information
sardemff7 committed Oct 29, 2021
1 parent 684535e commit d08fa89
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions tests/bindings.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,17 +415,33 @@ static const struct {
},
#ifdef NK_XKBCOMMON_HAS_COMPOSE
{
.testpath = "/nkutils/bindings/compose/with-binding",
.testpath = "/nkutils/bindings/compose/with-binding/start",
.data = {
.bindings = {
{ .binding = "dead_grave", .trigger = 1 },
{ .binding = NULL }
},
.keys = {
{ .key = KEYCODE_TILDE },
{ .key = KEYCODE_TILDE, .triggered = 1 },
{ .key = KEYCODE_TILDE, .state = NK_BINDINGS_KEY_STATE_RELEASE },
{ .key = KEYCODE_TILDE, .text = "`" },
{ .key = KEYCODE_TILDE, .triggered = 1 },
{ .key = KEYCODE_TILDE, .state = NK_BINDINGS_KEY_STATE_RELEASE },
{ .key = KEYCODE_NONE }
},
}
},
{
.testpath = "/nkutils/bindings/compose/with-binding/middle",
.data = {
.bindings = {
{ .binding = "space", .trigger = 1 },
{ .binding = NULL }
},
.keys = {
{ .key = KEYCODE_TILDE },
{ .key = KEYCODE_TILDE, .state = NK_BINDINGS_KEY_STATE_RELEASE },
{ .key = KEYCODE_SPACE, .text = "`" },
{ .key = KEYCODE_SPACE, .state = NK_BINDINGS_KEY_STATE_RELEASE },
{ .key = KEYCODE_NONE }
},
}
Expand Down

0 comments on commit d08fa89

Please sign in to comment.