apprt/embedded: ctrl-only should use binding-mods only

This allows it to ignore control side differences.
This commit is contained in:
Mitchell Hashimoto
2024-01-27 11:14:16 -08:00
parent 79d936e8e4
commit 0726a8d1fa
2 changed files with 6 additions and 1 deletions

View File

@@ -1895,6 +1895,11 @@ test "ctrlseq: normal ctrl c" {
try testing.expectEqual(@as(u8, 0x03), seq.?);
}
test "ctrlseq: normal ctrl c, right control" {
const seq = ctrlSeq("c", .{ .ctrl = true, .sides = .{ .ctrl = .right } });
try testing.expectEqual(@as(u8, 0x03), seq.?);
}
test "ctrlseq: alt should be allowed" {
const seq = ctrlSeq("c", .{ .alt = true, .ctrl = true });
try testing.expectEqual(@as(u8, 0x03), seq.?);