summaryrefslogtreecommitdiff
path: root/test/behaviour/other_files.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/other_files.zig')
-rw-r--r--test/behaviour/other_files.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/behaviour/other_files.zig b/test/behaviour/other_files.zig
index b97affc4..c0f9c08f 100644
--- a/test/behaviour/other_files.zig
+++ b/test/behaviour/other_files.zig
@@ -21,3 +21,10 @@ test "other-files: kbdin types at the pane with the keyboard and mousein clicks,
try std.testing.expectEqual(@as(u16, 22), try s.refused("/kbdin", "\xff"));
try std.testing.expectError(error.Refused, s.read("/kbdin"));
}
+
+test "other-files: kbdin's Kalt rune is Alt on the key after it alone, and an Alt key types nothing" {
+ var s = try Session.initFile(std.testing.allocator, "x\n");
+ defer s.deinit();
+ try s.keys("i\u{F015}zy\x1b");
+ try s.expect(s.at("/pane/{d}/body", .{try s.focused()}), "yx\n");
+}